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, setRepeatedField
clearOneof, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
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.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GtfsRealtime.TripUpdate.StopTimeEvent build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.TripUpdate.StopTimeEvent buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.TripUpdate.StopTimeEvent.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>
IOException
public 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.StopTimeEventOrBuilder
public 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.StopTimeEventOrBuilder
public 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.StopTimeEventOrBuilder
public 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.StopTimeEventOrBuilder
public 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.StopTimeEventOrBuilder
public 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.StopTimeEventOrBuilder
public 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.