public static final class GtfsRealtime.Position.Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.Position,GtfsRealtime.Position.Builder> implements GtfsRealtime.PositionOrBuilder
transit_realtime.Position
A position.
Modifier and Type | Method and Description |
---|---|
GtfsRealtime.Position |
build() |
GtfsRealtime.Position |
buildPartial() |
GtfsRealtime.Position.Builder |
clear() |
GtfsRealtime.Position.Builder |
clearBearing()
optional float bearing = 3; |
GtfsRealtime.Position.Builder |
clearLatitude()
required float latitude = 1; |
GtfsRealtime.Position.Builder |
clearLongitude()
required float longitude = 2; |
GtfsRealtime.Position.Builder |
clearOdometer()
optional double odometer = 4; |
GtfsRealtime.Position.Builder |
clearSpeed()
optional float speed = 5; |
GtfsRealtime.Position.Builder |
clone() |
float |
getBearing()
optional float bearing = 3; |
GtfsRealtime.Position |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
float |
getLatitude()
required float latitude = 1; |
float |
getLongitude()
required float longitude = 2; |
double |
getOdometer()
optional double odometer = 4; |
float |
getSpeed()
optional float speed = 5; |
boolean |
hasBearing()
optional float bearing = 3; |
boolean |
hasLatitude()
required float latitude = 1; |
boolean |
hasLongitude()
required float longitude = 2; |
boolean |
hasOdometer()
optional double odometer = 4; |
boolean |
hasSpeed()
optional float speed = 5; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GtfsRealtime.Position.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.Position.Builder |
mergeFrom(GtfsRealtime.Position other) |
GtfsRealtime.Position.Builder |
mergeFrom(com.google.protobuf.Message other) |
GtfsRealtime.Position.Builder |
setBearing(float value)
optional float bearing = 3; |
GtfsRealtime.Position.Builder |
setLatitude(float value)
required float latitude = 1; |
GtfsRealtime.Position.Builder |
setLongitude(float value)
required float longitude = 2; |
GtfsRealtime.Position.Builder |
setOdometer(double value)
optional double odometer = 4; |
GtfsRealtime.Position.Builder |
setSpeed(float value)
optional float speed = 5; |
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.Position.Builder>
public GtfsRealtime.Position.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.Position,GtfsRealtime.Position.Builder>
public GtfsRealtime.Position.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.Position,GtfsRealtime.Position.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.Position.Builder>
public GtfsRealtime.Position getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.Position>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GtfsRealtime.Position build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.Position buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GtfsRealtime.Position.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.Position.Builder>
public GtfsRealtime.Position.Builder mergeFrom(GtfsRealtime.Position other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.Position,GtfsRealtime.Position.Builder>
public GtfsRealtime.Position.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.Position.Builder>
IOException
public boolean hasLatitude()
required float latitude = 1;
Degrees North, in the WGS-84 coordinate system.
hasLatitude
in interface GtfsRealtime.PositionOrBuilder
public float getLatitude()
required float latitude = 1;
Degrees North, in the WGS-84 coordinate system.
getLatitude
in interface GtfsRealtime.PositionOrBuilder
public GtfsRealtime.Position.Builder setLatitude(float value)
required float latitude = 1;
Degrees North, in the WGS-84 coordinate system.
public GtfsRealtime.Position.Builder clearLatitude()
required float latitude = 1;
Degrees North, in the WGS-84 coordinate system.
public boolean hasLongitude()
required float longitude = 2;
Degrees East, in the WGS-84 coordinate system.
hasLongitude
in interface GtfsRealtime.PositionOrBuilder
public float getLongitude()
required float longitude = 2;
Degrees East, in the WGS-84 coordinate system.
getLongitude
in interface GtfsRealtime.PositionOrBuilder
public GtfsRealtime.Position.Builder setLongitude(float value)
required float longitude = 2;
Degrees East, in the WGS-84 coordinate system.
public GtfsRealtime.Position.Builder clearLongitude()
required float longitude = 2;
Degrees East, in the WGS-84 coordinate system.
public boolean hasBearing()
optional float bearing = 3;
Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East. This can be the compass bearing, or the direction towards the next stop or intermediate location. This should not be direction deduced from the sequence of previous positions, which can be computed from previous data.
hasBearing
in interface GtfsRealtime.PositionOrBuilder
public float getBearing()
optional float bearing = 3;
Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East. This can be the compass bearing, or the direction towards the next stop or intermediate location. This should not be direction deduced from the sequence of previous positions, which can be computed from previous data.
getBearing
in interface GtfsRealtime.PositionOrBuilder
public GtfsRealtime.Position.Builder setBearing(float value)
optional float bearing = 3;
Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East. This can be the compass bearing, or the direction towards the next stop or intermediate location. This should not be direction deduced from the sequence of previous positions, which can be computed from previous data.
public GtfsRealtime.Position.Builder clearBearing()
optional float bearing = 3;
Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East. This can be the compass bearing, or the direction towards the next stop or intermediate location. This should not be direction deduced from the sequence of previous positions, which can be computed from previous data.
public boolean hasOdometer()
optional double odometer = 4;
Odometer value, in meters.
hasOdometer
in interface GtfsRealtime.PositionOrBuilder
public double getOdometer()
optional double odometer = 4;
Odometer value, in meters.
getOdometer
in interface GtfsRealtime.PositionOrBuilder
public GtfsRealtime.Position.Builder setOdometer(double value)
optional double odometer = 4;
Odometer value, in meters.
public GtfsRealtime.Position.Builder clearOdometer()
optional double odometer = 4;
Odometer value, in meters.
public boolean hasSpeed()
optional float speed = 5;
Momentary speed measured by the vehicle, in meters per second.
hasSpeed
in interface GtfsRealtime.PositionOrBuilder
public float getSpeed()
optional float speed = 5;
Momentary speed measured by the vehicle, in meters per second.
getSpeed
in interface GtfsRealtime.PositionOrBuilder
public GtfsRealtime.Position.Builder setSpeed(float value)
optional float speed = 5;
Momentary speed measured by the vehicle, in meters per second.
public GtfsRealtime.Position.Builder clearSpeed()
optional float speed = 5;
Momentary speed measured by the vehicle, in meters per second.
Copyright © 2018. All rights reserved.