public static final class GtfsRealtime.TripUpdate.StopTimeEvent.Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder> implements GtfsRealtime.TripUpdate.StopTimeEventOrBuilder
Timing information for a single predicted event (either arrival or departure). Timing consists of delay and/or estimated time, and uncertainty. - delay should be used when the prediction is given relative to some existing schedule in GTFS. - time should be given whether there is a predicted schedule or not. If both time and delay are specified, time will take precedence (although normally, time, if given for a scheduled trip, should be equal to scheduled time in GTFS + delay). Uncertainty applies equally to both time and delay. The uncertainty roughly specifies the expected error in true delay (but note, we don't yet define its precise statistical meaning). It's possible for the uncertainty to be 0, for example for trains that are driven under computer timing control.Protobuf type
transit_realtime.TripUpdate.StopTimeEvent| Modifier and Type | Method and Description |
|---|---|
<Type> GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate.StopTimeEvent,List<Type>> extension,
Type value) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GtfsRealtime.TripUpdate.StopTimeEvent |
build() |
GtfsRealtime.TripUpdate.StopTimeEvent |
buildPartial() |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
clear() |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
clearDelay()
Delay (in seconds) can be positive (meaning that the vehicle is late) or
negative (meaning that the vehicle is ahead of schedule).
|
<Type> GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate.StopTimeEvent,?> extension) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
clearTime()
Event as absolute time.
|
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
clearUncertainty()
If uncertainty is omitted, it is interpreted as unknown.
|
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
clone() |
GtfsRealtime.TripUpdate.StopTimeEvent |
getDefaultInstanceForType() |
int |
getDelay()
Delay (in seconds) can be positive (meaning that the vehicle is late) or
negative (meaning that the vehicle is ahead of schedule).
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getTime()
Event as absolute time.
|
int |
getUncertainty()
If uncertainty is omitted, it is interpreted as unknown.
|
boolean |
hasDelay()
Delay (in seconds) can be positive (meaning that the vehicle is late) or
negative (meaning that the vehicle is ahead of schedule).
|
boolean |
hasTime()
Event as absolute time.
|
boolean |
hasUncertainty()
If uncertainty is omitted, it is interpreted as unknown.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
mergeFrom(GtfsRealtime.TripUpdate.StopTimeEvent other) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
mergeFrom(com.google.protobuf.Message other) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
setDelay(int value)
Delay (in seconds) can be positive (meaning that the vehicle is late) or
negative (meaning that the vehicle is ahead of schedule).
|
<Type> GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate.StopTimeEvent,List<Type>> extension,
int index,
Type value) |
<Type> GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate.StopTimeEvent,Type> extension,
Type value) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
setTime(long value)
Event as absolute time.
|
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
setUncertainty(int value)
If uncertainty is omitted, it is interpreted as unknown.
|
GtfsRealtime.TripUpdate.StopTimeEvent.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, mergeExtensionFields, setExtension, setExtension, setExtension, setExtensiongetFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedFieldBuilder, getUnknownFields, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<GtfsRealtime.TripUpdate.StopTimeEvent>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GtfsRealtime.TripUpdate.StopTimeEvent build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GtfsRealtime.TripUpdate.StopTimeEvent buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GtfsRealtime.TripUpdate.StopTimeEvent.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public <Type> GtfsRealtime.TripUpdate.StopTimeEvent.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate.StopTimeEvent,Type> extension, Type value)
setExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public <Type> GtfsRealtime.TripUpdate.StopTimeEvent.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate.StopTimeEvent,List<Type>> extension, int index, Type value)
setExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public <Type> GtfsRealtime.TripUpdate.StopTimeEvent.Builder addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate.StopTimeEvent,List<Type>> extension, Type value)
addExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public <Type> GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate.StopTimeEvent,?> extension)
clearExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent.Builder mergeFrom(GtfsRealtime.TripUpdate.StopTimeEvent other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>IOExceptionpublic boolean hasDelay()
Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time.
optional int32 delay = 1;hasDelay in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic int getDelay()
Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time.
optional int32 delay = 1;getDelay in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic GtfsRealtime.TripUpdate.StopTimeEvent.Builder setDelay(int value)
Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time.
optional int32 delay = 1;public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearDelay()
Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time.
optional int32 delay = 1;public boolean hasTime()
Event as absolute time. In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
optional int64 time = 2;hasTime in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic long getTime()
Event as absolute time. In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
optional int64 time = 2;getTime in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic GtfsRealtime.TripUpdate.StopTimeEvent.Builder setTime(long value)
Event as absolute time. In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
optional int64 time = 2;public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearTime()
Event as absolute time. In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
optional int64 time = 2;public boolean hasUncertainty()
If uncertainty is omitted, it is interpreted as unknown. If the prediction is unknown or too uncertain, the delay (or time) field should be empty. In such case, the uncertainty field is ignored. To specify a completely certain prediction, set its uncertainty to 0.
optional int32 uncertainty = 3;hasUncertainty in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic int getUncertainty()
If uncertainty is omitted, it is interpreted as unknown. If the prediction is unknown or too uncertain, the delay (or time) field should be empty. In such case, the uncertainty field is ignored. To specify a completely certain prediction, set its uncertainty to 0.
optional int32 uncertainty = 3;getUncertainty in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic GtfsRealtime.TripUpdate.StopTimeEvent.Builder setUncertainty(int value)
If uncertainty is omitted, it is interpreted as unknown. If the prediction is unknown or too uncertain, the delay (or time) field should be empty. In such case, the uncertainty field is ignored. To specify a completely certain prediction, set its uncertainty to 0.
optional int32 uncertainty = 3;public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearUncertainty()
If uncertainty is omitted, it is interpreted as unknown. If the prediction is unknown or too uncertain, the delay (or time) field should be empty. In such case, the uncertainty field is ignored. To specify a completely certain prediction, set its uncertainty to 0.
optional int32 uncertainty = 3;public final GtfsRealtime.TripUpdate.StopTimeEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public final GtfsRealtime.TripUpdate.StopTimeEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>Copyright © 2019. All rights reserved.