public final class RouteSummary extends com.google.protobuf.GeneratedMessage implements RouteSummaryOrBuilder
routeguide.RouteSummary
A RouteSummary is received in response to a RecordRoute rpc. It contains the number of individual points received, the number of detected features, and the total distance covered as the cumulative sum of the distance between each point.
| Modifier and Type | Class and Description |
|---|---|
static class |
RouteSummary.Builder
Protobuf type
routeguide.RouteSummary |
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 |
DISTANCE_FIELD_NUMBER |
static int |
ELAPSED_TIME_FIELD_NUMBER |
static int |
FEATURE_COUNT_FIELD_NUMBER |
static com.google.protobuf.Parser<RouteSummary> |
PARSER |
static int |
POINT_COUNT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static RouteSummary |
getDefaultInstance() |
RouteSummary |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDistance()
optional int32 distance = 3; |
int |
getElapsedTime()
optional int32 elapsed_time = 4; |
int |
getFeatureCount()
optional int32 feature_count = 2; |
com.google.protobuf.Parser<RouteSummary> |
getParserForType() |
int |
getPointCount()
optional int32 point_count = 1; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RouteSummary.Builder |
newBuilder() |
static RouteSummary.Builder |
newBuilder(RouteSummary prototype) |
RouteSummary.Builder |
newBuilderForType() |
protected RouteSummary.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static RouteSummary |
parseDelimitedFrom(InputStream input) |
static RouteSummary |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteSummary |
parseFrom(byte[] data) |
static RouteSummary |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteSummary |
parseFrom(com.google.protobuf.ByteString data) |
static RouteSummary |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteSummary |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RouteSummary |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteSummary |
parseFrom(InputStream input) |
static RouteSummary |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouteSummary.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField, writeReplaceequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Parser<RouteSummary> PARSER
public static final int POINT_COUNT_FIELD_NUMBER
public static final int FEATURE_COUNT_FIELD_NUMBER
public static final int DISTANCE_FIELD_NUMBER
public static final int ELAPSED_TIME_FIELD_NUMBER
public 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<RouteSummary> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic int getPointCount()
optional int32 point_count = 1;
The number of points received.
getPointCount in interface RouteSummaryOrBuilderpublic int getFeatureCount()
optional int32 feature_count = 2;
The number of known features passed while traversing the route.
getFeatureCount in interface RouteSummaryOrBuilderpublic int getDistance()
optional int32 distance = 3;
The distance covered in metres.
getDistance in interface RouteSummaryOrBuilderpublic int getElapsedTime()
optional int32 elapsed_time = 4;
The duration of the traversal in seconds.
getElapsedTime in interface RouteSummaryOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic 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.AbstractMessagepublic static RouteSummary parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteSummary parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteSummary parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteSummary parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouteSummary parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteSummary parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouteSummary parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteSummary parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouteSummary parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteSummary.Builder newBuilder()
public RouteSummary.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouteSummary.Builder newBuilder(RouteSummary prototype)
public RouteSummary.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouteSummary.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessagepublic static RouteSummary getDefaultInstance()
public RouteSummary getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder