public final class TransitLine extends com.google.protobuf.GeneratedMessageV3 implements TransitLineOrBuilder
Contains information about the transit line used in this step.Protobuf type
google.maps.routing.v2.TransitLine| Modifier and Type | Class and Description |
|---|---|
static class |
TransitLine.Builder
Contains information about the transit line used in this step.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
AGENCIES_FIELD_NUMBER |
static int |
COLOR_FIELD_NUMBER |
static int |
ICON_URI_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NAME_SHORT_FIELD_NUMBER |
static int |
TEXT_COLOR_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
static int |
VEHICLE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
TransitAgency |
getAgencies(int index)
The transit agency (or agencies) that operates this transit line.
|
int |
getAgenciesCount()
The transit agency (or agencies) that operates this transit line.
|
List<TransitAgency> |
getAgenciesList()
The transit agency (or agencies) that operates this transit line.
|
TransitAgencyOrBuilder |
getAgenciesOrBuilder(int index)
The transit agency (or agencies) that operates this transit line.
|
List<? extends TransitAgencyOrBuilder> |
getAgenciesOrBuilderList()
The transit agency (or agencies) that operates this transit line.
|
String |
getColor()
The color commonly used in signage for this line.
|
com.google.protobuf.ByteString |
getColorBytes()
The color commonly used in signage for this line.
|
static TransitLine |
getDefaultInstance() |
TransitLine |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getIconUri()
The URI for the icon associated with this line.
|
com.google.protobuf.ByteString |
getIconUriBytes()
The URI for the icon associated with this line.
|
String |
getName()
The full name of this transit line, For example, "8 Avenue Local".
|
com.google.protobuf.ByteString |
getNameBytes()
The full name of this transit line, For example, "8 Avenue Local".
|
String |
getNameShort()
The short name of this transit line.
|
com.google.protobuf.ByteString |
getNameShortBytes()
The short name of this transit line.
|
com.google.protobuf.Parser<TransitLine> |
getParserForType() |
int |
getSerializedSize() |
String |
getTextColor()
The color commonly used in text on signage for this line.
|
com.google.protobuf.ByteString |
getTextColorBytes()
The color commonly used in text on signage for this line.
|
String |
getUri()
the URI for this transit line as provided by the transit agency.
|
com.google.protobuf.ByteString |
getUriBytes()
the URI for this transit line as provided by the transit agency.
|
TransitVehicle |
getVehicle()
The type of vehicle that operates on this transit line.
|
TransitVehicleOrBuilder |
getVehicleOrBuilder()
The type of vehicle that operates on this transit line.
|
int |
hashCode() |
boolean |
hasVehicle()
The type of vehicle that operates on this transit line.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TransitLine.Builder |
newBuilder() |
static TransitLine.Builder |
newBuilder(TransitLine prototype) |
TransitLine.Builder |
newBuilderForType() |
protected TransitLine.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TransitLine |
parseDelimitedFrom(InputStream input) |
static TransitLine |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitLine |
parseFrom(byte[] data) |
static TransitLine |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitLine |
parseFrom(ByteBuffer data) |
static TransitLine |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitLine |
parseFrom(com.google.protobuf.ByteString data) |
static TransitLine |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitLine |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TransitLine |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitLine |
parseFrom(InputStream input) |
static TransitLine |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TransitLine> |
parser() |
TransitLine.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int AGENCIES_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
public static final int COLOR_FIELD_NUMBER
public static final int ICON_URI_FIELD_NUMBER
public static final int NAME_SHORT_FIELD_NUMBER
public static final int TEXT_COLOR_FIELD_NUMBER
public static final int VEHICLE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<TransitAgency> getAgenciesList()
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;getAgenciesList in interface TransitLineOrBuilderpublic List<? extends TransitAgencyOrBuilder> getAgenciesOrBuilderList()
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;getAgenciesOrBuilderList in interface TransitLineOrBuilderpublic int getAgenciesCount()
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;getAgenciesCount in interface TransitLineOrBuilderpublic TransitAgency getAgencies(int index)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;getAgencies in interface TransitLineOrBuilderpublic TransitAgencyOrBuilder getAgenciesOrBuilder(int index)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;getAgenciesOrBuilder in interface TransitLineOrBuilderpublic String getName()
The full name of this transit line, For example, "8 Avenue Local".
string name = 2;getName in interface TransitLineOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The full name of this transit line, For example, "8 Avenue Local".
string name = 2;getNameBytes in interface TransitLineOrBuilderpublic String getUri()
the URI for this transit line as provided by the transit agency.
string uri = 3;getUri in interface TransitLineOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
the URI for this transit line as provided by the transit agency.
string uri = 3;getUriBytes in interface TransitLineOrBuilderpublic String getColor()
The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;getColor in interface TransitLineOrBuilderpublic com.google.protobuf.ByteString getColorBytes()
The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;getColorBytes in interface TransitLineOrBuilderpublic String getIconUri()
The URI for the icon associated with this line.
string icon_uri = 5;getIconUri in interface TransitLineOrBuilderpublic com.google.protobuf.ByteString getIconUriBytes()
The URI for the icon associated with this line.
string icon_uri = 5;getIconUriBytes in interface TransitLineOrBuilderpublic String 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;getNameShort in interface TransitLineOrBuilderpublic 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;getNameShortBytes in interface TransitLineOrBuilderpublic String getTextColor()
The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;getTextColor in interface TransitLineOrBuilderpublic com.google.protobuf.ByteString getTextColorBytes()
The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;getTextColorBytes in interface TransitLineOrBuilderpublic boolean hasVehicle()
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;hasVehicle in interface TransitLineOrBuilderpublic TransitVehicle getVehicle()
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;getVehicle in interface TransitLineOrBuilderpublic TransitVehicleOrBuilder getVehicleOrBuilder()
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;getVehicleOrBuilder in interface TransitLineOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TransitLine parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitLine parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitLine parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitLine parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitLine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitLine parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitLine parseFrom(InputStream input) throws IOException
IOExceptionpublic static TransitLine parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TransitLine parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TransitLine parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TransitLine parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TransitLine parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TransitLine.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TransitLine.Builder newBuilder()
public static TransitLine.Builder newBuilder(TransitLine prototype)
public TransitLine.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TransitLine.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TransitLine getDefaultInstance()
public static com.google.protobuf.Parser<TransitLine> parser()
public com.google.protobuf.Parser<TransitLine> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TransitLine getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.