public static final class GtfsRealtime.TripUpdate.StopTimeEvent.Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder> implements GtfsRealtime.TripUpdate.StopTimeEventOrBuilder
transit_realtime.TripUpdate.StopTimeEvent
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.
addExtension, addRepeatedField, clearExtension, clearField, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, parseUnknownField, setExtension, setExtension, setField, setRepeatedFieldclearOneof, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public 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.GeneratedMessage.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.GeneratedMessage.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>public GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.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 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.GeneratedMessage.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()
optional int32 delay = 1;
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.
hasDelay in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic int getDelay()
optional int32 delay = 1;
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.
getDelay in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic GtfsRealtime.TripUpdate.StopTimeEvent.Builder setDelay(int value)
optional int32 delay = 1;
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.
public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearDelay()
optional int32 delay = 1;
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.
public boolean hasTime()
optional int64 time = 2;
Event as absolute time. In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
hasTime in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic long getTime()
optional int64 time = 2;
Event as absolute time. In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
getTime in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic GtfsRealtime.TripUpdate.StopTimeEvent.Builder setTime(long value)
optional int64 time = 2;
Event as absolute time. In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearTime()
optional int64 time = 2;
Event as absolute time. In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
public boolean hasUncertainty()
optional int32 uncertainty = 3;
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.
hasUncertainty in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic int getUncertainty()
optional int32 uncertainty = 3;
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.
getUncertainty in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilderpublic GtfsRealtime.TripUpdate.StopTimeEvent.Builder setUncertainty(int value)
optional int32 uncertainty = 3;
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.
public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearUncertainty()
optional int32 uncertainty = 3;
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.
Copyright © 2018. All rights reserved.