Package com.google.maps.routing.v2
Class TransitLine.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransitLine.Builder>
com.google.maps.routing.v2.TransitLine.Builder
- All Implemented Interfaces:
TransitLineOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TransitLine
public static final class TransitLine.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TransitLine.Builder>
implements TransitLineOrBuilder
Contains information about the transit line used in this step.Protobuf type
google.maps.routing.v2.TransitLine-
Method Summary
Modifier and TypeMethodDescriptionaddAgencies(int index, TransitAgency value) The transit agency (or agencies) that operates this transit line.addAgencies(int index, TransitAgency.Builder builderForValue) The transit agency (or agencies) that operates this transit line.addAgencies(TransitAgency value) The transit agency (or agencies) that operates this transit line.addAgencies(TransitAgency.Builder builderForValue) The transit agency (or agencies) that operates this transit line.The transit agency (or agencies) that operates this transit line.addAgenciesBuilder(int index) The transit agency (or agencies) that operates this transit line.addAllAgencies(Iterable<? extends TransitAgency> values) The transit agency (or agencies) that operates this transit line.build()clear()The transit agency (or agencies) that operates this transit line.The color commonly used in signage for this line.The URI for the icon associated with this line.The full name of this transit line, For example, "8 Avenue Local".The short name of this transit line.The color commonly used in text on signage for this line.clearUri()the URI for this transit line as provided by the transit agency.The type of vehicle that operates on this transit line.getAgencies(int index) The transit agency (or agencies) that operates this transit line.getAgenciesBuilder(int index) The transit agency (or agencies) that operates this transit line.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 final com.google.protobuf.Descriptors.Descriptorcom.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.The 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.The type of vehicle that operates on this transit line.booleanThe type of vehicle that operates on this transit line.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TransitLine other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeVehicle(TransitVehicle value) The type of vehicle that operates on this transit line.removeAgencies(int index) The transit agency (or agencies) that operates this transit line.setAgencies(int index, TransitAgency value) The transit agency (or agencies) that operates this transit line.setAgencies(int index, TransitAgency.Builder builderForValue) The transit agency (or agencies) that operates this transit line.The color commonly used in signage for this line.setColorBytes(com.google.protobuf.ByteString value) The color commonly used in signage for this line.setIconUri(String value) The URI for the icon associated with this line.setIconUriBytes(com.google.protobuf.ByteString value) The URI for the icon associated with this line.The full name of this transit line, For example, "8 Avenue Local".setNameBytes(com.google.protobuf.ByteString value) The full name of this transit line, For example, "8 Avenue Local".setNameShort(String value) The short name of this transit line.setNameShortBytes(com.google.protobuf.ByteString value) The short name of this transit line.setTextColor(String value) The color commonly used in text on signage for this line.setTextColorBytes(com.google.protobuf.ByteString value) The color commonly used in text on signage for this line.the URI for this transit line as provided by the transit agency.setUriBytes(com.google.protobuf.ByteString value) the URI for this transit line as provided by the transit agency.setVehicle(TransitVehicle value) The type of vehicle that operates on this transit line.setVehicle(TransitVehicle.Builder builderForValue) The type of vehicle that operates on this transit line.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<TransitLine.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<TransitLine.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<TransitLine.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<TransitLine.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TransitLine.Builder>
-
mergeFrom
public TransitLine.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<TransitLine.Builder>- Throws:
IOException
-
getAgenciesList
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;- Specified by:
getAgenciesListin 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
-
setAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
setAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
addAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
addAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
addAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
addAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
addAllAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
clearAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
removeAgencies
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
getAgenciesBuilder
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
getAgenciesOrBuilder
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;- Specified by:
getAgenciesOrBuilderin interfaceTransitLineOrBuilder
-
getAgenciesOrBuilderList
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1;- Specified by:
getAgenciesOrBuilderListin interfaceTransitLineOrBuilder
-
addAgenciesBuilder
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
addAgenciesBuilder
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
getAgenciesBuilderList
The transit agency (or agencies) that operates this transit line.
repeated .google.maps.routing.v2.TransitAgency agencies = 1; -
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.
-
setName
The full name of this transit line, For example, "8 Avenue Local".
string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The full name of this transit line, For example, "8 Avenue Local".
string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
The full name of this transit line, For example, "8 Avenue Local".
string name = 2;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setUri
the URI for this transit line as provided by the transit agency.
string uri = 3;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
the URI for this transit line as provided by the transit agency.
string uri = 3;- Returns:
- This builder for chaining.
-
setUriBytes
the URI for this transit line as provided by the transit agency.
string uri = 3;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
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.
-
setColor
The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;- Parameters:
value- The color to set.- Returns:
- This builder for chaining.
-
clearColor
The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;- Returns:
- This builder for chaining.
-
setColorBytes
The color commonly used in signage for this line. Represented in hexadecimal.
string color = 4;- Parameters:
value- The bytes for color to set.- Returns:
- This builder for chaining.
-
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.
-
setIconUri
The URI for the icon associated with this line.
string icon_uri = 5;- Parameters:
value- The iconUri to set.- Returns:
- This builder for chaining.
-
clearIconUri
The URI for the icon associated with this line.
string icon_uri = 5;- Returns:
- This builder for chaining.
-
setIconUriBytes
The URI for the icon associated with this line.
string icon_uri = 5;- Parameters:
value- The bytes for iconUri to set.- Returns:
- This builder for chaining.
-
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.
-
setNameShort
The short name of this transit line. This name will normally be a line number, such as "M7" or "355".
string name_short = 6;- Parameters:
value- The nameShort to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNameShortBytes
The short name of this transit line. This name will normally be a line number, such as "M7" or "355".
string name_short = 6;- Parameters:
value- The bytes for nameShort to set.- Returns:
- This builder for chaining.
-
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.
-
setTextColor
The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;- Parameters:
value- The textColor to set.- Returns:
- This builder for chaining.
-
clearTextColor
The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;- Returns:
- This builder for chaining.
-
setTextColorBytes
The color commonly used in text on signage for this line. Represented in hexadecimal.
string text_color = 7;- Parameters:
value- The bytes for textColor to set.- Returns:
- This builder for chaining.
-
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.
-
setVehicle
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8; -
setVehicle
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8; -
mergeVehicle
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8; -
clearVehicle
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8; -
getVehicleBuilder
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8; -
getVehicleOrBuilder
The type of vehicle that operates on this transit line.
.google.maps.routing.v2.TransitVehicle vehicle = 8;- Specified by:
getVehicleOrBuilderin interfaceTransitLineOrBuilder
-