public static final class VehicleInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<VehicleInfo.Builder> implements VehicleInfoOrBuilder
Contains the vehicle information, such as the vehicle emission type.Protobuf type
google.maps.routing.v2.VehicleInfo| Modifier and Type | Method and Description |
|---|---|
VehicleInfo |
build() |
VehicleInfo |
buildPartial() |
VehicleInfo.Builder |
clear() |
VehicleInfo.Builder |
clearEmissionType()
Describes the vehicle's emission type.
|
VehicleInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
VehicleEmissionType |
getEmissionType()
Describes the vehicle's emission type.
|
int |
getEmissionTypeValue()
Describes the vehicle's emission type.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
VehicleInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VehicleInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
VehicleInfo.Builder |
mergeFrom(VehicleInfo other) |
VehicleInfo.Builder |
setEmissionType(VehicleEmissionType value)
Describes the vehicle's emission type.
|
VehicleInfo.Builder |
setEmissionTypeValue(int value)
Describes the vehicle's emission type.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VehicleInfo.Builder>public VehicleInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<VehicleInfo.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<VehicleInfo.Builder>public VehicleInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic VehicleInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic VehicleInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic VehicleInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VehicleInfo.Builder>public VehicleInfo.Builder mergeFrom(VehicleInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<VehicleInfo.Builder>public VehicleInfo.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<VehicleInfo.Builder>IOExceptionpublic int getEmissionTypeValue()
Describes the vehicle's emission type. Applies only to the `DRIVE` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
.google.maps.routing.v2.VehicleEmissionType emission_type = 2;getEmissionTypeValue in interface VehicleInfoOrBuilderpublic VehicleInfo.Builder setEmissionTypeValue(int value)
Describes the vehicle's emission type. Applies only to the `DRIVE` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
.google.maps.routing.v2.VehicleEmissionType emission_type = 2;value - The enum numeric value on the wire for emissionType to set.public VehicleEmissionType getEmissionType()
Describes the vehicle's emission type. Applies only to the `DRIVE` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
.google.maps.routing.v2.VehicleEmissionType emission_type = 2;getEmissionType in interface VehicleInfoOrBuilderpublic VehicleInfo.Builder setEmissionType(VehicleEmissionType value)
Describes the vehicle's emission type. Applies only to the `DRIVE` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
.google.maps.routing.v2.VehicleEmissionType emission_type = 2;value - The emissionType to set.public VehicleInfo.Builder clearEmissionType()
Describes the vehicle's emission type. Applies only to the `DRIVE` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
.google.maps.routing.v2.VehicleEmissionType emission_type = 2;Copyright © 2026 Google LLC. All rights reserved.