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.ExtensionWriter
com.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, parseUnknownField
getDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtensionCount, hasExtension
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<GtfsRealtime.Position> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
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.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static GtfsRealtime.Position parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.Position parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.Position parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.Position parseFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.Position parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.Position parseDelimitedFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.Position parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.Position parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static GtfsRealtime.Position parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.Position.Builder newBuilder()
public GtfsRealtime.Position.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static GtfsRealtime.Position.Builder newBuilder(GtfsRealtime.Position prototype)
public GtfsRealtime.Position.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected GtfsRealtime.Position.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2019. All rights reserved.