public static final class GtfsRealtime.Position extends com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.Position> implements GtfsRealtime.PositionOrBuilder
transit_realtime.Position
A position.
| Modifier and Type | Class and Description |
|---|---|
static class |
GtfsRealtime.Position.Builder
Protobuf type
transit_realtime.Position |
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWritercom.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
BEARING_FIELD_NUMBER |
static int |
LATITUDE_FIELD_NUMBER |
static int |
LONGITUDE_FIELD_NUMBER |
static int |
ODOMETER_FIELD_NUMBER |
static com.google.protobuf.Parser<GtfsRealtime.Position> |
PARSER |
static int |
SPEED_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
float |
getBearing()
optional float bearing = 3; |
static GtfsRealtime.Position |
getDefaultInstance() |
GtfsRealtime.Position |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
float |
getLatitude()
required float latitude = 1; |
float |
getLongitude()
required float longitude = 2; |
double |
getOdometer()
optional double odometer = 4; |
com.google.protobuf.Parser<GtfsRealtime.Position> |
getParserForType() |
int |
getSerializedSize() |
float |
getSpeed()
optional float speed = 5; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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() |
static GtfsRealtime.Position.Builder |
newBuilder() |
static GtfsRealtime.Position.Builder |
newBuilder(GtfsRealtime.Position prototype) |
GtfsRealtime.Position.Builder |
newBuilderForType() |
protected GtfsRealtime.Position.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static GtfsRealtime.Position |
parseDelimitedFrom(InputStream input) |
static GtfsRealtime.Position |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.Position |
parseFrom(byte[] data) |
static GtfsRealtime.Position |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.Position |
parseFrom(com.google.protobuf.ByteString data) |
static GtfsRealtime.Position |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.Position |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GtfsRealtime.Position |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.Position |
parseFrom(InputStream input) |
static GtfsRealtime.Position |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.Position.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownFieldgetDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtensionCount, hasExtensionpublic static com.google.protobuf.Parser<GtfsRealtime.Position> PARSER
public static final int LATITUDE_FIELD_NUMBER
public static final int LONGITUDE_FIELD_NUMBER
public static final int BEARING_FIELD_NUMBER
public static final int ODOMETER_FIELD_NUMBER
public static final int SPEED_FIELD_NUMBER
public static GtfsRealtime.Position getDefaultInstance()
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 final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<GtfsRealtime.Position> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.Position>public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static GtfsRealtime.Position parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.Position parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.Position parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.Position parseFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.Position parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.Position parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.Position parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.Position parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.Position parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.Position.Builder newBuilder()
public GtfsRealtime.Position.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GtfsRealtime.Position.Builder newBuilder(GtfsRealtime.Position prototype)
public GtfsRealtime.Position.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GtfsRealtime.Position.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2018. All rights reserved.