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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransitLine.Builder>
    • clear

      public TransitLine.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TransitLine.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TransitLine.Builder>
    • getDefaultInstanceForType

      public TransitLine getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TransitLine build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransitLine buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TransitLine.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransitLine.Builder>
    • mergeFrom

      public TransitLine.Builder mergeFrom(TransitLine other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransitLine.Builder>
      Throws:
      IOException
    • getAgenciesList

      public List<TransitAgency> getAgenciesList()
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
      Specified by:
      getAgenciesList in interface TransitLineOrBuilder
    • getAgenciesCount

      public int getAgenciesCount()
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
      Specified by:
      getAgenciesCount in interface TransitLineOrBuilder
    • getAgencies

      public TransitAgency getAgencies(int index)
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
      Specified by:
      getAgencies in interface TransitLineOrBuilder
    • setAgencies

      public 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;
    • setAgencies

      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;
    • addAgencies

      public TransitLine.Builder addAgencies(TransitAgency value)
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
    • addAgencies

      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;
    • addAgencies

      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;
    • addAgencies

      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;
    • addAllAgencies

      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;
    • clearAgencies

      public TransitLine.Builder clearAgencies()
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
    • removeAgencies

      public TransitLine.Builder removeAgencies(int index)
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
    • getAgenciesBuilder

      public TransitAgency.Builder getAgenciesBuilder(int index)
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
    • getAgenciesOrBuilder

      public TransitAgencyOrBuilder getAgenciesOrBuilder(int index)
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
      Specified by:
      getAgenciesOrBuilder in interface TransitLineOrBuilder
    • getAgenciesOrBuilderList

      public List<? extends TransitAgencyOrBuilder> getAgenciesOrBuilderList()
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
      Specified by:
      getAgenciesOrBuilderList in interface TransitLineOrBuilder
    • addAgenciesBuilder

      public TransitAgency.Builder addAgenciesBuilder()
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
    • addAgenciesBuilder

      public TransitAgency.Builder addAgenciesBuilder(int index)
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
    • getAgenciesBuilderList

      public List<TransitAgency.Builder> getAgenciesBuilderList()
       The transit agency (or agencies) that operates this transit line.
       
      repeated .google.maps.routing.v2.TransitAgency agencies = 1;
    • getName

      public String getName()
       The full name of this transit line, For example, "8 Avenue Local".
       
      string name = 2;
      Specified by:
      getName in interface TransitLineOrBuilder
      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:
      getNameBytes in interface TransitLineOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TransitLine.Builder setName(String value)
       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

      public TransitLine.Builder clearName()
       The full name of this transit line, For example, "8 Avenue Local".
       
      string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public TransitLine.Builder setNameBytes(com.google.protobuf.ByteString value)
       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

      public String getUri()
       the URI for this transit line as provided by the transit agency.
       
      string uri = 3;
      Specified by:
      getUri in interface TransitLineOrBuilder
      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:
      getUriBytes in interface TransitLineOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public TransitLine.Builder setUri(String value)
       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

      public TransitLine.Builder clearUri()
       the URI for this transit line as provided by the transit agency.
       
      string uri = 3;
      Returns:
      This builder for chaining.
    • setUriBytes

      public TransitLine.Builder setUriBytes(com.google.protobuf.ByteString value)
       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

      public String getColor()
       The color commonly used in signage for this line. Represented in
       hexadecimal.
       
      string color = 4;
      Specified by:
      getColor in interface TransitLineOrBuilder
      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:
      getColorBytes in interface TransitLineOrBuilder
      Returns:
      The bytes for color.
    • setColor

      public TransitLine.Builder setColor(String value)
       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

      public TransitLine.Builder clearColor()
       The color commonly used in signage for this line. Represented in
       hexadecimal.
       
      string color = 4;
      Returns:
      This builder for chaining.
    • setColorBytes

      public TransitLine.Builder setColorBytes(com.google.protobuf.ByteString value)
       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

      public String getIconUri()
       The URI for the icon associated with this line.
       
      string icon_uri = 5;
      Specified by:
      getIconUri in interface TransitLineOrBuilder
      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:
      getIconUriBytes in interface TransitLineOrBuilder
      Returns:
      The bytes for iconUri.
    • setIconUri

      public TransitLine.Builder setIconUri(String value)
       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

      public TransitLine.Builder clearIconUri()
       The URI for the icon associated with this line.
       
      string icon_uri = 5;
      Returns:
      This builder for chaining.
    • setIconUriBytes

      public TransitLine.Builder setIconUriBytes(com.google.protobuf.ByteString value)
       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

      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;
      Specified by:
      getNameShort in interface TransitLineOrBuilder
      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:
      getNameShortBytes in interface TransitLineOrBuilder
      Returns:
      The bytes for nameShort.
    • setNameShort

      public 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;
      Parameters:
      value - The nameShort to set.
      Returns:
      This builder for chaining.
    • clearNameShort

      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;
      Returns:
      This builder for chaining.
    • setNameShortBytes

      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;
      Parameters:
      value - The bytes for nameShort to set.
      Returns:
      This builder for chaining.
    • getTextColor

      public String getTextColor()
       The color commonly used in text on signage for this line. Represented in
       hexadecimal.
       
      string text_color = 7;
      Specified by:
      getTextColor in interface TransitLineOrBuilder
      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:
      getTextColorBytes in interface TransitLineOrBuilder
      Returns:
      The bytes for textColor.
    • setTextColor

      public TransitLine.Builder setTextColor(String value)
       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

      public TransitLine.Builder 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

      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;
      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:
      hasVehicle in interface TransitLineOrBuilder
      Returns:
      Whether the vehicle field is set.
    • getVehicle

      public TransitVehicle getVehicle()
       The type of vehicle that operates on this transit line.
       
      .google.maps.routing.v2.TransitVehicle vehicle = 8;
      Specified by:
      getVehicle in interface TransitLineOrBuilder
      Returns:
      The vehicle.
    • setVehicle

      public TransitLine.Builder setVehicle(TransitVehicle value)
       The type of vehicle that operates on this transit line.
       
      .google.maps.routing.v2.TransitVehicle vehicle = 8;
    • setVehicle

      public TransitLine.Builder setVehicle(TransitVehicle.Builder builderForValue)
       The type of vehicle that operates on this transit line.
       
      .google.maps.routing.v2.TransitVehicle vehicle = 8;
    • mergeVehicle

      public TransitLine.Builder mergeVehicle(TransitVehicle value)
       The type of vehicle that operates on this transit line.
       
      .google.maps.routing.v2.TransitVehicle vehicle = 8;
    • clearVehicle

      public TransitLine.Builder clearVehicle()
       The type of vehicle that operates on this transit line.
       
      .google.maps.routing.v2.TransitVehicle vehicle = 8;
    • getVehicleBuilder

      public TransitVehicle.Builder getVehicleBuilder()
       The type of vehicle that operates on this transit line.
       
      .google.maps.routing.v2.TransitVehicle vehicle = 8;
    • getVehicleOrBuilder

      public TransitVehicleOrBuilder getVehicleOrBuilder()
       The type of vehicle that operates on this transit line.
       
      .google.maps.routing.v2.TransitVehicle vehicle = 8;
      Specified by:
      getVehicleOrBuilder in interface TransitLineOrBuilder