Package com.google.maps.routing.v2
Class RouteLegStepTransitDetails.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouteLegStepTransitDetails.Builder>
com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder
- All Implemented Interfaces:
RouteLegStepTransitDetailsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouteLegStepTransitDetails
public static final class RouteLegStepTransitDetails.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RouteLegStepTransitDetails.Builder>
implements RouteLegStepTransitDetailsOrBuilder
Additional information for the `RouteLegStep` related to `TRANSIT` routes.Protobuf type
google.maps.routing.v2.RouteLegStepTransitDetails-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop.Specifies the expected time as a duration between departures from the same stop at this time.Text representations of properties of the `RouteLegStepTransitDetails`.The number of stops from the departure to the arrival stop.Information about the arrival and departure stops for the step.Information about the transit line used in this step.The text that appears in schedules and sign boards to identify a transit trip to passengers.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the direction in which to travel on this line as marked on the vehicle or at the departure stop.com.google.protobuf.ByteStringSpecifies the direction in which to travel on this line as marked on the vehicle or at the departure stop.com.google.protobuf.DurationSpecifies the expected time as a duration between departures from the same stop at this time.com.google.protobuf.Duration.BuilderSpecifies the expected time as a duration between departures from the same stop at this time.com.google.protobuf.DurationOrBuilderSpecifies the expected time as a duration between departures from the same stop at this time.Text representations of properties of the `RouteLegStepTransitDetails`.Text representations of properties of the `RouteLegStepTransitDetails`.Text representations of properties of the `RouteLegStepTransitDetails`.intThe number of stops from the departure to the arrival stop.Information about the arrival and departure stops for the step.Information about the arrival and departure stops for the step.Information about the arrival and departure stops for the step.Information about the transit line used in this step.Information about the transit line used in this step.Information about the transit line used in this step.The text that appears in schedules and sign boards to identify a transit trip to passengers.com.google.protobuf.ByteStringThe text that appears in schedules and sign boards to identify a transit trip to passengers.booleanSpecifies the expected time as a duration between departures from the same stop at this time.booleanText representations of properties of the `RouteLegStepTransitDetails`.booleanInformation about the arrival and departure stops for the step.booleanInformation about the transit line used in this step.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeHeadway(com.google.protobuf.Duration value) Specifies the expected time as a duration between departures from the same stop at this time.Text representations of properties of the `RouteLegStepTransitDetails`.Information about the arrival and departure stops for the step.mergeTransitLine(TransitLine value) Information about the transit line used in this step.setHeadsign(String value) Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop.setHeadsignBytes(com.google.protobuf.ByteString value) Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop.setHeadway(com.google.protobuf.Duration value) Specifies the expected time as a duration between departures from the same stop at this time.setHeadway(com.google.protobuf.Duration.Builder builderForValue) Specifies the expected time as a duration between departures from the same stop at this time.Text representations of properties of the `RouteLegStepTransitDetails`.setLocalizedValues(RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder builderForValue) Text representations of properties of the `RouteLegStepTransitDetails`.setStopCount(int value) The number of stops from the departure to the arrival stop.Information about the arrival and departure stops for the step.setStopDetails(RouteLegStepTransitDetails.TransitStopDetails.Builder builderForValue) Information about the arrival and departure stops for the step.setTransitLine(TransitLine value) Information about the transit line used in this step.setTransitLine(TransitLine.Builder builderForValue) Information about the transit line used in this step.setTripShortText(String value) The text that appears in schedules and sign boards to identify a transit trip to passengers.setTripShortTextBytes(com.google.protobuf.ByteString value) The text that appears in schedules and sign boards to identify a transit trip to passengers.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<RouteLegStepTransitDetails.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<RouteLegStepTransitDetails.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<RouteLegStepTransitDetails.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<RouteLegStepTransitDetails.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RouteLegStepTransitDetails.Builder>
-
mergeFrom
public RouteLegStepTransitDetails.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<RouteLegStepTransitDetails.Builder>- Throws:
IOException
-
hasStopDetails
public boolean hasStopDetails()Information about the arrival and departure stops for the step.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1;- Specified by:
hasStopDetailsin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- Whether the stopDetails field is set.
-
getStopDetails
Information about the arrival and departure stops for the step.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1;- Specified by:
getStopDetailsin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- The stopDetails.
-
setStopDetails
public RouteLegStepTransitDetails.Builder setStopDetails(RouteLegStepTransitDetails.TransitStopDetails value) Information about the arrival and departure stops for the step.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; -
setStopDetails
public RouteLegStepTransitDetails.Builder setStopDetails(RouteLegStepTransitDetails.TransitStopDetails.Builder builderForValue) Information about the arrival and departure stops for the step.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; -
mergeStopDetails
public RouteLegStepTransitDetails.Builder mergeStopDetails(RouteLegStepTransitDetails.TransitStopDetails value) Information about the arrival and departure stops for the step.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; -
clearStopDetails
Information about the arrival and departure stops for the step.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; -
getStopDetailsBuilder
Information about the arrival and departure stops for the step.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; -
getStopDetailsOrBuilder
Information about the arrival and departure stops for the step.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1;- Specified by:
getStopDetailsOrBuilderin interfaceRouteLegStepTransitDetailsOrBuilder
-
hasLocalizedValues
public boolean hasLocalizedValues()Text representations of properties of the `RouteLegStepTransitDetails`.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2;- Specified by:
hasLocalizedValuesin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
Text representations of properties of the `RouteLegStepTransitDetails`.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2;- Specified by:
getLocalizedValuesin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- The localizedValues.
-
setLocalizedValues
public RouteLegStepTransitDetails.Builder setLocalizedValues(RouteLegStepTransitDetails.TransitDetailsLocalizedValues value) Text representations of properties of the `RouteLegStepTransitDetails`.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; -
setLocalizedValues
public RouteLegStepTransitDetails.Builder setLocalizedValues(RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder builderForValue) Text representations of properties of the `RouteLegStepTransitDetails`.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; -
mergeLocalizedValues
public RouteLegStepTransitDetails.Builder mergeLocalizedValues(RouteLegStepTransitDetails.TransitDetailsLocalizedValues value) Text representations of properties of the `RouteLegStepTransitDetails`.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; -
clearLocalizedValues
Text representations of properties of the `RouteLegStepTransitDetails`.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; -
getLocalizedValuesBuilder
Text representations of properties of the `RouteLegStepTransitDetails`.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; -
getLocalizedValuesOrBuilder
public RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()Text representations of properties of the `RouteLegStepTransitDetails`.
.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2;- Specified by:
getLocalizedValuesOrBuilderin interfaceRouteLegStepTransitDetailsOrBuilder
-
getHeadsign
Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop. The direction is often the terminus station.
string headsign = 3;- Specified by:
getHeadsignin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- The headsign.
-
getHeadsignBytes
public com.google.protobuf.ByteString getHeadsignBytes()Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop. The direction is often the terminus station.
string headsign = 3;- Specified by:
getHeadsignBytesin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- The bytes for headsign.
-
setHeadsign
Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop. The direction is often the terminus station.
string headsign = 3;- Parameters:
value- The headsign to set.- Returns:
- This builder for chaining.
-
clearHeadsign
Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop. The direction is often the terminus station.
string headsign = 3;- Returns:
- This builder for chaining.
-
setHeadsignBytes
Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop. The direction is often the terminus station.
string headsign = 3;- Parameters:
value- The bytes for headsign to set.- Returns:
- This builder for chaining.
-
hasHeadway
public boolean hasHeadway()Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus.
.google.protobuf.Duration headway = 4;- Specified by:
hasHeadwayin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- Whether the headway field is set.
-
getHeadway
public com.google.protobuf.Duration getHeadway()Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus.
.google.protobuf.Duration headway = 4;- Specified by:
getHeadwayin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- The headway.
-
setHeadway
Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus.
.google.protobuf.Duration headway = 4; -
setHeadway
public RouteLegStepTransitDetails.Builder setHeadway(com.google.protobuf.Duration.Builder builderForValue) Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus.
.google.protobuf.Duration headway = 4; -
mergeHeadway
Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus.
.google.protobuf.Duration headway = 4; -
clearHeadway
Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus.
.google.protobuf.Duration headway = 4; -
getHeadwayBuilder
public com.google.protobuf.Duration.Builder getHeadwayBuilder()Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus.
.google.protobuf.Duration headway = 4; -
getHeadwayOrBuilder
public com.google.protobuf.DurationOrBuilder getHeadwayOrBuilder()Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus.
.google.protobuf.Duration headway = 4;- Specified by:
getHeadwayOrBuilderin interfaceRouteLegStepTransitDetailsOrBuilder
-
hasTransitLine
public boolean hasTransitLine()Information about the transit line used in this step.
.google.maps.routing.v2.TransitLine transit_line = 5;- Specified by:
hasTransitLinein interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- Whether the transitLine field is set.
-
getTransitLine
Information about the transit line used in this step.
.google.maps.routing.v2.TransitLine transit_line = 5;- Specified by:
getTransitLinein interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- The transitLine.
-
setTransitLine
Information about the transit line used in this step.
.google.maps.routing.v2.TransitLine transit_line = 5; -
setTransitLine
Information about the transit line used in this step.
.google.maps.routing.v2.TransitLine transit_line = 5; -
mergeTransitLine
Information about the transit line used in this step.
.google.maps.routing.v2.TransitLine transit_line = 5; -
clearTransitLine
Information about the transit line used in this step.
.google.maps.routing.v2.TransitLine transit_line = 5; -
getTransitLineBuilder
Information about the transit line used in this step.
.google.maps.routing.v2.TransitLine transit_line = 5; -
getTransitLineOrBuilder
Information about the transit line used in this step.
.google.maps.routing.v2.TransitLine transit_line = 5;- Specified by:
getTransitLineOrBuilderin interfaceRouteLegStepTransitDetailsOrBuilder
-
getStopCount
public int getStopCount()The number of stops from the departure to the arrival stop. This count includes the arrival stop, but excludes the departure stop. For example, if your route leaves from Stop A, passes through stops B and C, and arrives at stop D, <code>stop_count</code> returns 3.
int32 stop_count = 6;- Specified by:
getStopCountin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- The stopCount.
-
setStopCount
The number of stops from the departure to the arrival stop. This count includes the arrival stop, but excludes the departure stop. For example, if your route leaves from Stop A, passes through stops B and C, and arrives at stop D, <code>stop_count</code> returns 3.
int32 stop_count = 6;- Parameters:
value- The stopCount to set.- Returns:
- This builder for chaining.
-
clearStopCount
The number of stops from the departure to the arrival stop. This count includes the arrival stop, but excludes the departure stop. For example, if your route leaves from Stop A, passes through stops B and C, and arrives at stop D, <code>stop_count</code> returns 3.
int32 stop_count = 6;- Returns:
- This builder for chaining.
-
getTripShortText
The text that appears in schedules and sign boards to identify a transit trip to passengers. The text should uniquely identify a trip within a service day. For example, "538" is the `trip_short_text` of the Amtrak train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
string trip_short_text = 7;- Specified by:
getTripShortTextin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- The tripShortText.
-
getTripShortTextBytes
public com.google.protobuf.ByteString getTripShortTextBytes()The text that appears in schedules and sign boards to identify a transit trip to passengers. The text should uniquely identify a trip within a service day. For example, "538" is the `trip_short_text` of the Amtrak train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
string trip_short_text = 7;- Specified by:
getTripShortTextBytesin interfaceRouteLegStepTransitDetailsOrBuilder- Returns:
- The bytes for tripShortText.
-
setTripShortText
The text that appears in schedules and sign boards to identify a transit trip to passengers. The text should uniquely identify a trip within a service day. For example, "538" is the `trip_short_text` of the Amtrak train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
string trip_short_text = 7;- Parameters:
value- The tripShortText to set.- Returns:
- This builder for chaining.
-
clearTripShortText
The text that appears in schedules and sign boards to identify a transit trip to passengers. The text should uniquely identify a trip within a service day. For example, "538" is the `trip_short_text` of the Amtrak train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
string trip_short_text = 7;- Returns:
- This builder for chaining.
-
setTripShortTextBytes
public RouteLegStepTransitDetails.Builder setTripShortTextBytes(com.google.protobuf.ByteString value) The text that appears in schedules and sign boards to identify a transit trip to passengers. The text should uniquely identify a trip within a service day. For example, "538" is the `trip_short_text` of the Amtrak train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
string trip_short_text = 7;- Parameters:
value- The bytes for tripShortText to set.- Returns:
- This builder for chaining.
-