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, 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.Position.Builder>public GtfsRealtime.Position.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.Position,GtfsRealtime.Position.Builder>public GtfsRealtime.Position.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.Position,GtfsRealtime.Position.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.Position.Builder>public GtfsRealtime.Position getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.Position>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GtfsRealtime.Position build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GtfsRealtime.Position buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GtfsRealtime.Position.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.Position.Builder>IOExceptionpublic boolean hasLatitude()
required float latitude = 1;
Degrees North, in the WGS-84 coordinate system.
hasLatitude in interface GtfsRealtime.PositionOrBuilderpublic float getLatitude()
required float latitude = 1;
Degrees North, in the WGS-84 coordinate system.
getLatitude in interface GtfsRealtime.PositionOrBuilderpublic 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.PositionOrBuilderpublic float getLongitude()
required float longitude = 2;
Degrees East, in the WGS-84 coordinate system.
getLongitude in interface GtfsRealtime.PositionOrBuilderpublic 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.PositionOrBuilderpublic 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.PositionOrBuilderpublic 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.PositionOrBuilderpublic double getOdometer()
optional double odometer = 4;
Odometer value, in meters.
getOdometer in interface GtfsRealtime.PositionOrBuilderpublic 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.PositionOrBuilderpublic float getSpeed()
optional float speed = 5;
Momentary speed measured by the vehicle, in meters per second.
getSpeed in interface GtfsRealtime.PositionOrBuilderpublic 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.