public static final class GtfsRealtime.Position extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<GtfsRealtime.Position> implements GtfsRealtime.PositionOrBuilder
A position.Protobuf type
transit_realtime.Position| Modifier and Type | Class and Description |
|---|---|
static class |
GtfsRealtime.Position.Builder
A position.
|
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWritercom.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 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
Deprecated.
|
static int |
SPEED_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
float |
getBearing()
Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
|
static GtfsRealtime.Position |
getDefaultInstance() |
GtfsRealtime.Position |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
float |
getLatitude()
Degrees North, in the WGS-84 coordinate system.
|
float |
getLongitude()
Degrees East, in the WGS-84 coordinate system.
|
double |
getOdometer()
Odometer value, in meters.
|
com.google.protobuf.Parser<GtfsRealtime.Position> |
getParserForType() |
int |
getSerializedSize() |
float |
getSpeed()
Momentary speed measured by the vehicle, in meters per second.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBearing()
Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
|
int |
hashCode() |
boolean |
hasLatitude()
Degrees North, in the WGS-84 coordinate system.
|
boolean |
hasLongitude()
Degrees East, in the WGS-84 coordinate system.
|
boolean |
hasOdometer()
Odometer value, in meters.
|
boolean |
hasSpeed()
Momentary speed measured by the vehicle, in meters per second.
|
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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(ByteBuffer data) |
static GtfsRealtime.Position |
parseFrom(ByteBuffer 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) |
static com.google.protobuf.Parser<GtfsRealtime.Position> |
parser() |
GtfsRealtime.Position.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3canUseUnsafe, computeStringSize, computeStringSizeNoTag, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionpublic 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
@Deprecated public static final com.google.protobuf.Parser<GtfsRealtime.Position> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasLatitude()
Degrees North, in the WGS-84 coordinate system.
required float latitude = 1;hasLatitude in interface GtfsRealtime.PositionOrBuilderpublic float getLatitude()
Degrees North, in the WGS-84 coordinate system.
required float latitude = 1;getLatitude in interface GtfsRealtime.PositionOrBuilderpublic boolean hasLongitude()
Degrees East, in the WGS-84 coordinate system.
required float longitude = 2;hasLongitude in interface GtfsRealtime.PositionOrBuilderpublic float getLongitude()
Degrees East, in the WGS-84 coordinate system.
required float longitude = 2;getLongitude in interface GtfsRealtime.PositionOrBuilderpublic boolean hasBearing()
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.
optional float bearing = 3;hasBearing in interface GtfsRealtime.PositionOrBuilderpublic float getBearing()
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.
optional float bearing = 3;getBearing in interface GtfsRealtime.PositionOrBuilderpublic boolean hasOdometer()
Odometer value, in meters.
optional double odometer = 4;hasOdometer in interface GtfsRealtime.PositionOrBuilderpublic double getOdometer()
Odometer value, in meters.
optional double odometer = 4;getOdometer in interface GtfsRealtime.PositionOrBuilderpublic boolean hasSpeed()
Momentary speed measured by the vehicle, in meters per second.
optional float speed = 5;hasSpeed in interface GtfsRealtime.PositionOrBuilderpublic float getSpeed()
Momentary speed measured by the vehicle, in meters per second.
optional float speed = 5;getSpeed in interface GtfsRealtime.PositionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GtfsRealtime.Position parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.Position parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic 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 GtfsRealtime.Position.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GtfsRealtime.Position.Builder newBuilder()
public 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.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GtfsRealtime.Position getDefaultInstance()
public static com.google.protobuf.Parser<GtfsRealtime.Position> parser()
public 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.GeneratedMessageV3public GtfsRealtime.Position getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<GtfsRealtime.Position>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.