Class TransitVehicle

  • All Implemented Interfaces:
    TransitVehicleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class TransitVehicle
    extends com.google.protobuf.GeneratedMessageV3
    implements TransitVehicleOrBuilder
     Information about a vehicle used in transit routes.
     
    Protobuf type google.maps.routing.v2.TransitVehicle
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TransitVehicle.Builder
      Information about a vehicle used in transit routes.
      static class  TransitVehicle.TransitVehicleType
      The type of vehicles for transit routes.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ICON_URI_FIELD_NUMBER  
      static int LOCAL_ICON_URI_FIELD_NUMBER  
      static int NAME_FIELD_NUMBER  
      static int TYPE_FIELD_NUMBER  
      • Fields inherited from class com.google.protobuf.GeneratedMessageV3

        alwaysUseFieldBuilders, unknownFields
      • Fields inherited from class com.google.protobuf.AbstractMessage

        memoizedSize
      • Fields inherited from class com.google.protobuf.AbstractMessageLite

        memoizedHashCode
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasName

        public boolean hasName()
         The name of this vehicle, capitalized.
         
        .google.type.LocalizedText name = 1;
        Specified by:
        hasName in interface TransitVehicleOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public com.google.type.LocalizedText getName()
         The name of this vehicle, capitalized.
         
        .google.type.LocalizedText name = 1;
        Specified by:
        getName in interface TransitVehicleOrBuilder
        Returns:
        The name.
      • getNameOrBuilder

        public com.google.type.LocalizedTextOrBuilder getNameOrBuilder()
         The name of this vehicle, capitalized.
         
        .google.type.LocalizedText name = 1;
        Specified by:
        getNameOrBuilder in interface TransitVehicleOrBuilder
      • getTypeValue

        public int getTypeValue()
         The type of vehicle used.
         
        .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2;
        Specified by:
        getTypeValue in interface TransitVehicleOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • getIconUri

        public String getIconUri()
         The URI for an icon associated with this vehicle type.
         
        string icon_uri = 3;
        Specified by:
        getIconUri in interface TransitVehicleOrBuilder
        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:
        getIconUriBytes in interface TransitVehicleOrBuilder
        Returns:
        The bytes for iconUri.
      • getLocalIconUri

        public String getLocalIconUri()
         The URI for the icon associated with this vehicle type, based on the local
         transport signage.
         
        string local_icon_uri = 4;
        Specified by:
        getLocalIconUri in interface TransitVehicleOrBuilder
        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:
        getLocalIconUriBytes in interface TransitVehicleOrBuilder
        Returns:
        The bytes for localIconUri.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static TransitVehicle parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransitVehicle parseFrom​(ByteBuffer data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransitVehicle parseFrom​(com.google.protobuf.ByteString data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransitVehicle parseFrom​(com.google.protobuf.ByteString data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransitVehicle parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransitVehicle parseFrom​(byte[] data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransitVehicle parseFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

        public TransitVehicle.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public TransitVehicle.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected TransitVehicle.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static TransitVehicle getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<TransitVehicle> parser()
      • getParserForType

        public com.google.protobuf.Parser<TransitVehicle> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public TransitVehicle getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder