Package com.google.maps.routing.v2
Class TransitVehicle.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransitVehicle.Builder>
com.google.maps.routing.v2.TransitVehicle.Builder
- All Implemented Interfaces:
TransitVehicleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TransitVehicle
public static final class TransitVehicle.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TransitVehicle.Builder>
implements TransitVehicleOrBuilder
Information about a vehicle used in transit routes.Protobuf type
google.maps.routing.v2.TransitVehicle-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The URI for an icon associated with this vehicle type.The URI for the icon associated with this vehicle type, based on the local transport signage.The name of this vehicle, capitalized.The type of vehicle used.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe URI for an icon associated with this vehicle type.com.google.protobuf.ByteStringThe URI for an icon associated with this vehicle type.The URI for the icon associated with this vehicle type, based on the local transport signage.com.google.protobuf.ByteStringThe URI for the icon associated with this vehicle type, based on the local transport signage.getName()The name of this vehicle, capitalized.The name of this vehicle, capitalized.The name of this vehicle, capitalized.getType()The type of vehicle used.intThe type of vehicle used.booleanhasName()The name of this vehicle, capitalized.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TransitVehicle other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeName(LocalizedText value) The name of this vehicle, capitalized.setIconUri(String value) The URI for an icon associated with this vehicle type.setIconUriBytes(com.google.protobuf.ByteString value) The URI for an icon associated with this vehicle type.setLocalIconUri(String value) The URI for the icon associated with this vehicle type, based on the local transport signage.setLocalIconUriBytes(com.google.protobuf.ByteString value) The URI for the icon associated with this vehicle type, based on the local transport signage.setName(LocalizedText value) The name of this vehicle, capitalized.setName(LocalizedText.Builder builderForValue) The name of this vehicle, capitalized.The type of vehicle used.setTypeValue(int value) The type of vehicle used.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TransitVehicle.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TransitVehicle.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TransitVehicle.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransitVehicle.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TransitVehicle.Builder>
-
mergeFrom
public TransitVehicle.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransitVehicle.Builder>- Throws:
IOException
-
hasName
public boolean hasName()The name of this vehicle, capitalized.
.google.type.LocalizedText name = 1;- Specified by:
hasNamein interfaceTransitVehicleOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name of this vehicle, capitalized.
.google.type.LocalizedText name = 1;- Specified by:
getNamein interfaceTransitVehicleOrBuilder- Returns:
- The name.
-
setName
The name of this vehicle, capitalized.
.google.type.LocalizedText name = 1; -
setName
The name of this vehicle, capitalized.
.google.type.LocalizedText name = 1; -
mergeName
The name of this vehicle, capitalized.
.google.type.LocalizedText name = 1; -
clearName
The name of this vehicle, capitalized.
.google.type.LocalizedText name = 1; -
getNameBuilder
The name of this vehicle, capitalized.
.google.type.LocalizedText name = 1; -
getNameOrBuilder
The name of this vehicle, capitalized.
.google.type.LocalizedText name = 1;- Specified by:
getNameOrBuilderin interfaceTransitVehicleOrBuilder
-
getTypeValue
public int getTypeValue()The type of vehicle used.
.google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2;- Specified by:
getTypeValuein interfaceTransitVehicleOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The type of vehicle used.
.google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The type of vehicle used.
.google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2;- Specified by:
getTypein interfaceTransitVehicleOrBuilder- Returns:
- The type.
-
setType
The type of vehicle used.
.google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of vehicle used.
.google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2;- Returns:
- This builder for chaining.
-
getIconUri
The URI for an icon associated with this vehicle type.
string icon_uri = 3;- Specified by:
getIconUriin interfaceTransitVehicleOrBuilder- Returns:
- The iconUri.
-
getIconUriBytes
public com.google.protobuf.ByteString getIconUriBytes()The URI for an icon associated with this vehicle type.
string icon_uri = 3;- Specified by:
getIconUriBytesin interfaceTransitVehicleOrBuilder- Returns:
- The bytes for iconUri.
-
setIconUri
The URI for an icon associated with this vehicle type.
string icon_uri = 3;- Parameters:
value- The iconUri to set.- Returns:
- This builder for chaining.
-
clearIconUri
The URI for an icon associated with this vehicle type.
string icon_uri = 3;- Returns:
- This builder for chaining.
-
setIconUriBytes
The URI for an icon associated with this vehicle type.
string icon_uri = 3;- Parameters:
value- The bytes for iconUri to set.- Returns:
- This builder for chaining.
-
getLocalIconUri
The URI for the icon associated with this vehicle type, based on the local transport signage.
string local_icon_uri = 4;- Specified by:
getLocalIconUriin interfaceTransitVehicleOrBuilder- Returns:
- The localIconUri.
-
getLocalIconUriBytes
public com.google.protobuf.ByteString getLocalIconUriBytes()The URI for the icon associated with this vehicle type, based on the local transport signage.
string local_icon_uri = 4;- Specified by:
getLocalIconUriBytesin interfaceTransitVehicleOrBuilder- Returns:
- The bytes for localIconUri.
-
setLocalIconUri
The URI for the icon associated with this vehicle type, based on the local transport signage.
string local_icon_uri = 4;- Parameters:
value- The localIconUri to set.- Returns:
- This builder for chaining.
-
clearLocalIconUri
The URI for the icon associated with this vehicle type, based on the local transport signage.
string local_icon_uri = 4;- Returns:
- This builder for chaining.
-
setLocalIconUriBytes
The URI for the icon associated with this vehicle type, based on the local transport signage.
string local_icon_uri = 4;- Parameters:
value- The bytes for localIconUri to set.- Returns:
- This builder for chaining.
-