public static enum GtfsRealtime.TripDescriptor.ScheduleRelationship extends Enum<GtfsRealtime.TripDescriptor.ScheduleRelationship> implements com.google.protobuf.ProtocolMessageEnum
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.Protobuf enum
transit_realtime.TripDescriptor.ScheduleRelationship| Enum Constant and Description |
|---|
ADDED
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.
|
CANCELED
A trip that existed in the schedule but was removed.
|
REPLACEMENT
Deprecated.
|
SCHEDULED
Trip that is running in accordance with its GTFS schedule, or is close
enough to the scheduled trip to be associated with it.
|
UNSCHEDULED
A trip that is running with no schedule associated to it, for example, if
there is no schedule at all.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ADDED_VALUE
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.
|
static int |
CANCELED_VALUE
A trip that existed in the schedule but was removed.
|
static int |
REPLACEMENT_VALUE
Should not be used - for backwards-compatibility only.
|
static int |
SCHEDULED_VALUE
Trip that is running in accordance with its GTFS schedule, or is close
enough to the scheduled trip to be associated with it.
|
static int |
UNSCHEDULED_VALUE
A trip that is running with no schedule associated to it, for example, if
there is no schedule at all.
|
| Modifier and Type | Method and Description |
|---|---|
static GtfsRealtime.TripDescriptor.ScheduleRelationship |
forNumber(int value) |
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)
Deprecated.
Use
forNumber(int) instead. |
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
Trip that is running in accordance with its GTFS schedule, or is close enough to the scheduled trip to be associated with it.
SCHEDULED = 0;public static final GtfsRealtime.TripDescriptor.ScheduleRelationship ADDED
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.
ADDED = 1;public static final GtfsRealtime.TripDescriptor.ScheduleRelationship UNSCHEDULED
A trip that is running with no schedule associated to it, for example, if there is no schedule at all.
UNSCHEDULED = 2;public static final GtfsRealtime.TripDescriptor.ScheduleRelationship CANCELED
A trip that existed in the schedule but was removed.
CANCELED = 3;@Deprecated public static final GtfsRealtime.TripDescriptor.ScheduleRelationship REPLACEMENT
Should not be used - for backwards-compatibility only.
REPLACEMENT = 5 [deprecated = true];public static final int SCHEDULED_VALUE
Trip that is running in accordance with its GTFS schedule, or is close enough to the scheduled trip to be associated with it.
SCHEDULED = 0;public static final int ADDED_VALUE
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.
ADDED = 1;public static final int UNSCHEDULED_VALUE
A trip that is running with no schedule associated to it, for example, if there is no schedule at all.
UNSCHEDULED = 2;public static final int CANCELED_VALUE
A trip that existed in the schedule but was removed.
CANCELED = 3;public static final int REPLACEMENT_VALUE
Should not be used - for backwards-compatibility only.
REPLACEMENT = 5 [deprecated = true];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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static GtfsRealtime.TripDescriptor.ScheduleRelationship valueOf(int value)
forNumber(int) instead.public static GtfsRealtime.TripDescriptor.ScheduleRelationship forNumber(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.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static GtfsRealtime.TripDescriptor.ScheduleRelationship valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019. All rights reserved.