public static final class TransitLine.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder> implements TransitLineOrBuilder
Contains information about the transit line used in this step.Protobuf type
google.maps.routing.v2.TransitLine| Modifier and Type | Method and Description |
|---|---|
TransitLine.Builder |
addAgencies(int index,
TransitAgency.Builder builderForValue)
The transit agency (or agencies) that operates this transit line.
|
TransitLine.Builder |
addAgencies(int index,
TransitAgency value)
The transit agency (or agencies) that operates this transit line.
|
TransitLine.Builder |
addAgencies(TransitAgency.Builder builderForValue)
The transit agency (or agencies) that operates this transit line.
|
TransitLine.Builder |
addAgencies(TransitAgency value)
The transit agency (or agencies) that operates this transit line.
|
TransitAgency.Builder |
addAgenciesBuilder()
The transit agency (or agencies) that operates this transit line.
|
TransitAgency.Builder |
addAgenciesBuilder(int index)
The transit agency (or agencies) that operates this transit line.
|
TransitLine.Builder |
addAllAgencies(Iterable<? extends TransitAgency> values)
The transit agency (or agencies) that operates this transit line.
|
TransitLine.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransitLine |
build() |
TransitLine |
buildPartial() |
TransitLine.Builder |
clear() |
TransitLine.Builder |
clearAgencies()
The transit agency (or agencies) that operates this transit line.
|
TransitLine.Builder |
clearColor()
The color commonly used in signage for this line.
|
TransitLine.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TransitLine.Builder |
clearIconUri()
The URI for the icon associated with this line.
|
TransitLine.Builder |
clearName()
The full name of this transit line, For example, "8 Avenue Local".
|
TransitLine.Builder |
clearNameShort()
The short name of this transit line.
|
TransitLine.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TransitLine.Builder |
clearTextColor()
The color commonly used in text on signage for this line.
|
TransitLine.Builder |
clearUri()
the URI for this transit line as provided by the transit agency.
|
TransitLine.Builder |
clearVehicle()
The type of vehicle that operates on this transit line.
|
TransitLine.Builder |
clone() |
TransitAgency |
getAgencies(int index)
The transit agency (or agencies) that operates this transit line.
|
TransitAgency.Builder |
getAgenciesBuilder(int index)
The transit agency (or agencies) that operates this transit line.
|
List<TransitAgency.Builder> |
getAgenciesBuilderList()
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.
|
TransitLine |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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.
|
TransitVehicle.Builder |
getVehicleBuilder()
The type of vehicle that operates on this transit line.
|
TransitVehicleOrBuilder |
getVehicleOrBuilder()
The type of vehicle that operates on this transit line.
|
boolean |
hasVehicle()
The type of vehicle that operates on this transit line.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransitLine.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransitLine.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransitLine.Builder |
mergeFrom(TransitLine other) |
TransitLine.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransitLine.Builder |
mergeVehicle(TransitVehicle value)
The type of vehicle that operates on this transit line.
|
TransitLine.Builder |
removeAgencies(int index)
The transit agency (or agencies) that operates this transit line.
|
TransitLine.Builder |
setAgencies(int index,
TransitAgency.Builder builderForValue)
The transit agency (or agencies) that operates this transit line.
|
TransitLine.Builder |
setAgencies(int index,
TransitAgency value)
The transit agency (or agencies) that operates this transit line.
|
TransitLine.Builder |
setColor(String value)
The color commonly used in signage for this line.
|
TransitLine.Builder |
setColorBytes(com.google.protobuf.ByteString value)
The color commonly used in signage for this line.
|
TransitLine.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransitLine.Builder |
setIconUri(String value)
The URI for the icon associated with this line.
|
TransitLine.Builder |
setIconUriBytes(com.google.protobuf.ByteString value)
The URI for the icon associated with this line.
|
TransitLine.Builder |
setName(String value)
The full name of this transit line, For example, "8 Avenue Local".
|
TransitLine.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The full name of this transit line, For example, "8 Avenue Local".
|
TransitLine.Builder |
setNameShort(String value)
The short name of this transit line.
|
TransitLine.Builder |
setNameShortBytes(com.google.protobuf.ByteString value)
The short name of this transit line.
|
TransitLine.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TransitLine.Builder |
setTextColor(String value)
The color commonly used in text on signage for this line.
|
TransitLine.Builder |
setTextColorBytes(com.google.protobuf.ByteString value)
The color commonly used in text on signage for this line.
|
TransitLine.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransitLine.Builder |
setUri(String value)
the URI for this transit line as provided by the transit agency.
|
TransitLine.Builder |
setUriBytes(com.google.protobuf.ByteString value)
the URI for this transit line as provided by the transit agency.
|
TransitLine.Builder |
setVehicle(TransitVehicle.Builder builderForValue)
The type of vehicle that operates on this transit line.
|
TransitLine.Builder |
setVehicle(TransitVehicle value)
The type of vehicle that operates on this transit line.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>public TransitLine.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.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.GeneratedMessageV3.Builder<TransitLine.Builder>public TransitLine getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TransitLine build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TransitLine buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TransitLine.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>public TransitLine.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>public TransitLine.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>public TransitLine.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>public TransitLine.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>public TransitLine.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>public TransitLine.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransitLine.Builder>public TransitLine.Builder mergeFrom(TransitLine other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>public TransitLine.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<TransitLine.Builder>IOExceptionpublic 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 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 TransitLine.Builder setAgencies(int index, TransitAgency value)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitLine.Builder setAgencies(int index, TransitAgency.Builder builderForValue)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitLine.Builder addAgencies(TransitAgency value)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitLine.Builder addAgencies(int index, TransitAgency value)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitLine.Builder addAgencies(TransitAgency.Builder builderForValue)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitLine.Builder addAgencies(int index, TransitAgency.Builder builderForValue)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitLine.Builder addAllAgencies(Iterable<? extends TransitAgency> values)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitLine.Builder clearAgencies()
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitLine.Builder removeAgencies(int index)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitAgency.Builder getAgenciesBuilder(int index)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public 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 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 TransitAgency.Builder addAgenciesBuilder()
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public TransitAgency.Builder addAgenciesBuilder(int index)
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public List<TransitAgency.Builder> getAgenciesBuilderList()
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;public 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 TransitLine.Builder setName(String value)
The full name of this transit line, For example, "8 Avenue Local".
string name = 2;value - The name to set.public TransitLine.Builder clearName()
The full name of this transit line, For example, "8 Avenue Local".
string name = 2;public TransitLine.Builder setNameBytes(com.google.protobuf.ByteString value)
The full name of this transit line, For example, "8 Avenue Local".
string name = 2;value - The bytes for name to set.public 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 TransitLine.Builder setUri(String value)
the URI for this transit line as provided by the transit agency.
string uri = 3;value - The uri to set.public TransitLine.Builder clearUri()
the URI for this transit line as provided by the transit agency.
string uri = 3;public TransitLine.Builder setUriBytes(com.google.protobuf.ByteString value)
the URI for this transit line as provided by the transit agency.
string uri = 3;value - The bytes for uri to set.public 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 TransitLine.Builder setColor(String value)
The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;value - The color to set.public TransitLine.Builder clearColor()
The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;public TransitLine.Builder setColorBytes(com.google.protobuf.ByteString value)
The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;value - The bytes for color to set.public 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 TransitLine.Builder setIconUri(String value)
The URI for the icon associated with this line.
string icon_uri = 5;value - The iconUri to set.public TransitLine.Builder clearIconUri()
The URI for the icon associated with this line.
string icon_uri = 5;public TransitLine.Builder setIconUriBytes(com.google.protobuf.ByteString value)
The URI for the icon associated with this line.
string icon_uri = 5;value - The bytes for iconUri to set.public 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 TransitLine.Builder setNameShort(String value)
The short name of this transit line. This name will normally be a line number, such as "M7" or "355".
string name_short = 6;value - The nameShort to set.public TransitLine.Builder clearNameShort()
The short name of this transit line. This name will normally be a line number, such as "M7" or "355".
string name_short = 6;public TransitLine.Builder setNameShortBytes(com.google.protobuf.ByteString value)
The short name of this transit line. This name will normally be a line number, such as "M7" or "355".
string name_short = 6;value - The bytes for nameShort to set.public 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 TransitLine.Builder setTextColor(String value)
The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;value - The textColor to set.public TransitLine.Builder clearTextColor()
The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;public TransitLine.Builder setTextColorBytes(com.google.protobuf.ByteString value)
The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;value - The bytes for textColor to set.public 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 TransitLine.Builder setVehicle(TransitVehicle value)
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;public TransitLine.Builder setVehicle(TransitVehicle.Builder builderForValue)
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;public TransitLine.Builder mergeVehicle(TransitVehicle value)
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;public TransitLine.Builder clearVehicle()
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;public TransitVehicle.Builder getVehicleBuilder()
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;public TransitVehicleOrBuilder getVehicleOrBuilder()
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;getVehicleOrBuilder in interface TransitLineOrBuilderpublic final TransitLine.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>public final TransitLine.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransitLine.Builder>Copyright © 2025 Google LLC. All rights reserved.