com.google.transit.realtime
Class GtfsRealtime.TripUpdate.StopTimeEvent.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
          extended by com.google.protobuf.GeneratedMessage.Builder<BuilderType>
              extended by com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>
                  extended by com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder
All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TripUpdate.StopTimeEvent>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GtfsRealtime.TripUpdate.StopTimeEventOrBuilder, Cloneable
Enclosing class:
GtfsRealtime.TripUpdate.StopTimeEvent

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

Protobuf type 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.
 


Method Summary
 GtfsRealtime.TripUpdate.StopTimeEvent build()
           
 GtfsRealtime.TripUpdate.StopTimeEvent buildPartial()
           
 GtfsRealtime.TripUpdate.StopTimeEvent.Builder clear()
           
 GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearDelay()
          optional int32 delay = 1;
 GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearTime()
          optional int64 time = 2;
 GtfsRealtime.TripUpdate.StopTimeEvent.Builder clearUncertainty()
          optional int32 uncertainty = 3;
 GtfsRealtime.TripUpdate.StopTimeEvent.Builder clone()
           
 GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstanceForType()
           
 int getDelay()
          optional int32 delay = 1;
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 long getTime()
          optional int64 time = 2;
 int getUncertainty()
          optional int32 uncertainty = 3;
 boolean hasDelay()
          optional int32 delay = 1;
 boolean hasTime()
          optional int64 time = 2;
 boolean hasUncertainty()
          optional int32 uncertainty = 3;
protected  com.google.protobuf.GeneratedMessage.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 setDelay(int value)
          optional int32 delay = 1;
 GtfsRealtime.TripUpdate.StopTimeEvent.Builder setTime(long value)
          optional int64 time = 2;
 GtfsRealtime.TripUpdate.StopTimeEvent.Builder setUncertainty(int value)
          optional int32 uncertainty = 3;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, addRepeatedField, clearExtension, clearField, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, parseUnknownField, setExtension, setExtension, setField, setRepeatedField
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
clearOneof, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtensionCount, hasExtension
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
 

Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>

clear

public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clear()
Specified by:
clear in interface com.google.protobuf.Message.Builder
Specified by:
clear in interface com.google.protobuf.MessageLite.Builder
Overrides:
clear in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>

clone

public GtfsRealtime.TripUpdate.StopTimeEvent.Builder clone()
Specified by:
clone in interface com.google.protobuf.Message.Builder
Specified by:
clone in interface com.google.protobuf.MessageLite.Builder
Overrides:
clone in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>

getDefaultInstanceForType

public GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TripUpdate.StopTimeEvent>
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

public GtfsRealtime.TripUpdate.StopTimeEvent build()
Specified by:
build in interface com.google.protobuf.Message.Builder
Specified by:
build in interface com.google.protobuf.MessageLite.Builder

buildPartial

public GtfsRealtime.TripUpdate.StopTimeEvent buildPartial()
Specified by:
buildPartial in interface com.google.protobuf.Message.Builder
Specified by:
buildPartial in interface com.google.protobuf.MessageLite.Builder

mergeFrom

public GtfsRealtime.TripUpdate.StopTimeEvent.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>

mergeFrom

public GtfsRealtime.TripUpdate.StopTimeEvent.Builder mergeFrom(GtfsRealtime.TripUpdate.StopTimeEvent other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate.StopTimeEvent,GtfsRealtime.TripUpdate.StopTimeEvent.Builder>

mergeFrom

public GtfsRealtime.TripUpdate.StopTimeEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TripUpdate.StopTimeEvent.Builder>
Throws:
IOException

hasDelay

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.
 

Specified by:
hasDelay in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilder

getDelay

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.
 

Specified by:
getDelay in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilder

setDelay

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.
 


clearDelay

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.
 


hasTime

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).
 

Specified by:
hasTime in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilder

getTime

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).
 

Specified by:
getTime in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilder

setTime

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).
 


clearTime

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).
 


hasUncertainty

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.
 

Specified by:
hasUncertainty in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilder

getUncertainty

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.
 

Specified by:
getUncertainty in interface GtfsRealtime.TripUpdate.StopTimeEventOrBuilder

setUncertainty

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.
 


clearUncertainty

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 © 2015. All Rights Reserved.