public static enum GtfsRealtime.TripDescriptor.ScheduleRelationship extends Enum<GtfsRealtime.TripDescriptor.ScheduleRelationship> implements com.google.protobuf.ProtocolMessageEnum
transit_realtime.TripDescriptor.ScheduleRelationship
The relation between this trip and the static schedule. If a trip is done in accordance with temporary schedule, not reflected in GTFS, then it shouldn't be marked as SCHEDULED, but likely as ADDED.
Enum Constant and Description |
---|
ADDED
ADDED = 1; |
CANCELED
CANCELED = 3; |
MODIFIED
MODIFIED = 5; |
SCHEDULED
SCHEDULED = 0; |
UNSCHEDULED
UNSCHEDULED = 2; |
Modifier and Type | Field and Description |
---|---|
static int |
ADDED_VALUE
ADDED = 1; |
static int |
CANCELED_VALUE
CANCELED = 3; |
static int |
MODIFIED_VALUE
MODIFIED = 5; |
static int |
SCHEDULED_VALUE
SCHEDULED = 0; |
static int |
UNSCHEDULED_VALUE
UNSCHEDULED = 2; |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<GtfsRealtime.TripDescriptor.ScheduleRelationship> |
internalGetValueMap() |
static GtfsRealtime.TripDescriptor.ScheduleRelationship |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GtfsRealtime.TripDescriptor.ScheduleRelationship |
valueOf(int value) |
static GtfsRealtime.TripDescriptor.ScheduleRelationship |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GtfsRealtime.TripDescriptor.ScheduleRelationship[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GtfsRealtime.TripDescriptor.ScheduleRelationship SCHEDULED
SCHEDULED = 0;
Trip that is running in accordance with its GTFS schedule, or is close enough to the scheduled trip to be associated with it.
public static final GtfsRealtime.TripDescriptor.ScheduleRelationship ADDED
ADDED = 1;
An extra trip that was added in addition to a running schedule, for example, to replace a broken vehicle or to respond to sudden passenger load.
public static final GtfsRealtime.TripDescriptor.ScheduleRelationship UNSCHEDULED
UNSCHEDULED = 2;
A trip that is running with no schedule associated to it, for example, if there is no schedule at all.
public static final GtfsRealtime.TripDescriptor.ScheduleRelationship CANCELED
CANCELED = 3;
A trip that existed in the schedule but was removed.
public static final GtfsRealtime.TripDescriptor.ScheduleRelationship MODIFIED
MODIFIED = 5;
Trip that is no longer running in accordance with its GTFS schedule and replaces it.
public static final int SCHEDULED_VALUE
SCHEDULED = 0;
Trip that is running in accordance with its GTFS schedule, or is close enough to the scheduled trip to be associated with it.
public static final int ADDED_VALUE
ADDED = 1;
An extra trip that was added in addition to a running schedule, for example, to replace a broken vehicle or to respond to sudden passenger load.
public static final int UNSCHEDULED_VALUE
UNSCHEDULED = 2;
A trip that is running with no schedule associated to it, for example, if there is no schedule at all.
public static final int CANCELED_VALUE
CANCELED = 3;
A trip that existed in the schedule but was removed.
public static final int MODIFIED_VALUE
MODIFIED = 5;
Trip that is no longer running in accordance with its GTFS schedule and replaces it.
public static GtfsRealtime.TripDescriptor.ScheduleRelationship[] values()
for (GtfsRealtime.TripDescriptor.ScheduleRelationship c : GtfsRealtime.TripDescriptor.ScheduleRelationship.values()) System.out.println(c);
public static GtfsRealtime.TripDescriptor.ScheduleRelationship valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static GtfsRealtime.TripDescriptor.ScheduleRelationship valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<GtfsRealtime.TripDescriptor.ScheduleRelationship> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static GtfsRealtime.TripDescriptor.ScheduleRelationship valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018. All rights reserved.