Package com.google.maps.routing.v2
Class TransitLine
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.maps.routing.v2.TransitLine
- All Implemented Interfaces:
TransitLineOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class TransitLine
extends com.google.protobuf.GeneratedMessage
implements TransitLineOrBuilder
Contains information about the transit line used in this step.Protobuf type
google.maps.routing.v2.TransitLine- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains information about the transit line used in this step.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAgencies(int index) The transit agency (or agencies) that operates this transit line.intThe transit agency (or agencies) that operates this transit line.The transit agency (or agencies) that operates this transit line.getAgenciesOrBuilder(int index) The transit agency (or agencies) that operates this transit line.List<? extends TransitAgencyOrBuilder>The transit agency (or agencies) that operates this transit line.getColor()The color commonly used in signage for this line.com.google.protobuf.ByteStringThe color commonly used in signage for this line.static TransitLinestatic final com.google.protobuf.Descriptors.DescriptorThe URI for the icon associated with this line.com.google.protobuf.ByteStringThe URI for the icon associated with this line.getName()The full name of this transit line, For example, "8 Avenue Local".com.google.protobuf.ByteStringThe full name of this transit line, For example, "8 Avenue Local".The short name of this transit line.com.google.protobuf.ByteStringThe short name of this transit line.com.google.protobuf.Parser<TransitLine>intThe color commonly used in text on signage for this line.com.google.protobuf.ByteStringThe color commonly used in text on signage for this line.getUri()the URI for this transit line as provided by the transit agency.com.google.protobuf.ByteStringthe URI for this transit line as provided by the transit agency.The type of vehicle that operates on this transit line.The type of vehicle that operates on this transit line.inthashCode()booleanThe type of vehicle that operates on this transit line.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic TransitLine.Builderstatic TransitLine.BuildernewBuilder(TransitLine prototype) protected TransitLine.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static TransitLineparseDelimitedFrom(InputStream input) static TransitLineparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransitLineparseFrom(byte[] data) static TransitLineparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransitLineparseFrom(com.google.protobuf.ByteString data) static TransitLineparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransitLineparseFrom(com.google.protobuf.CodedInputStream input) static TransitLineparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransitLineparseFrom(InputStream input) static TransitLineparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransitLineparseFrom(ByteBuffer data) static TransitLineparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TransitLine>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
AGENCIES_FIELD_NUMBER
public static final int AGENCIES_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
COLOR_FIELD_NUMBER
public static final int COLOR_FIELD_NUMBER- See Also:
-
ICON_URI_FIELD_NUMBER
public static final int ICON_URI_FIELD_NUMBER- See Also:
-
NAME_SHORT_FIELD_NUMBER
public static final int NAME_SHORT_FIELD_NUMBER- See Also:
-
TEXT_COLOR_FIELD_NUMBER
public static final int TEXT_COLOR_FIELD_NUMBER- See Also:
-
VEHICLE_FIELD_NUMBER
public static final int VEHICLE_FIELD_NUMBER- See Also:
-
-
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
-
getAgenciesList
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;- Specified by:
getAgenciesListin interfaceTransitLineOrBuilder
-
getAgenciesOrBuilderList
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;- Specified by:
getAgenciesOrBuilderListin interfaceTransitLineOrBuilder
-
getAgenciesCount
public int getAgenciesCount()The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;- Specified by:
getAgenciesCountin interfaceTransitLineOrBuilder
-
getAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;- Specified by:
getAgenciesin interfaceTransitLineOrBuilder
-
getAgenciesOrBuilder
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;- Specified by:
getAgenciesOrBuilderin interfaceTransitLineOrBuilder
-
getName
The full name of this transit line, For example, "8 Avenue Local".
string name = 2;- Specified by:
getNamein interfaceTransitLineOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The full name of this transit line, For example, "8 Avenue Local".
string name = 2;- Specified by:
getNameBytesin interfaceTransitLineOrBuilder- Returns:
- The bytes for name.
-
getUri
the URI for this transit line as provided by the transit agency.
string uri = 3;- Specified by:
getUriin interfaceTransitLineOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()the URI for this transit line as provided by the transit agency.
string uri = 3;- Specified by:
getUriBytesin interfaceTransitLineOrBuilder- Returns:
- The bytes for uri.
-
getColor
The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;- Specified by:
getColorin interfaceTransitLineOrBuilder- Returns:
- The color.
-
getColorBytes
public com.google.protobuf.ByteString getColorBytes()The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;- Specified by:
getColorBytesin interfaceTransitLineOrBuilder- Returns:
- The bytes for color.
-
getIconUri
The URI for the icon associated with this line.
string icon_uri = 5;- Specified by:
getIconUriin interfaceTransitLineOrBuilder- Returns:
- The iconUri.
-
getIconUriBytes
public com.google.protobuf.ByteString getIconUriBytes()The URI for the icon associated with this line.
string icon_uri = 5;- Specified by:
getIconUriBytesin interfaceTransitLineOrBuilder- Returns:
- The bytes for iconUri.
-
getNameShort
The short name of this transit line. This name will normally be a line number, such as "M7" or "355".
string name_short = 6;- Specified by:
getNameShortin interfaceTransitLineOrBuilder- Returns:
- The nameShort.
-
getNameShortBytes
public com.google.protobuf.ByteString getNameShortBytes()The short name of this transit line. This name will normally be a line number, such as "M7" or "355".
string name_short = 6;- Specified by:
getNameShortBytesin interfaceTransitLineOrBuilder- Returns:
- The bytes for nameShort.
-
getTextColor
The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;- Specified by:
getTextColorin interfaceTransitLineOrBuilder- Returns:
- The textColor.
-
getTextColorBytes
public com.google.protobuf.ByteString getTextColorBytes()The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;- Specified by:
getTextColorBytesin interfaceTransitLineOrBuilder- Returns:
- The bytes for textColor.
-
hasVehicle
public boolean hasVehicle()The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;- Specified by:
hasVehiclein interfaceTransitLineOrBuilder- Returns:
- Whether the vehicle field is set.
-
getVehicle
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;- Specified by:
getVehiclein interfaceTransitLineOrBuilder- Returns:
- The vehicle.
-
getVehicleOrBuilder
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;- Specified by:
getVehicleOrBuilderin interfaceTransitLineOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TransitLine parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransitLine parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransitLine parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransitLine parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransitLine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransitLine parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TransitLine parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TransitLine parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TransitLine parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TransitLine.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-