Package com.google.maps.routing.v2
Class RouteLeg.StepsOverview.MultiModalSegment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouteLeg.StepsOverview.MultiModalSegment.Builder>
com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder
- All Implemented Interfaces:
RouteLeg.StepsOverview.MultiModalSegmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouteLeg.StepsOverview.MultiModalSegment
public static final class RouteLeg.StepsOverview.MultiModalSegment.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RouteLeg.StepsOverview.MultiModalSegment.Builder>
implements RouteLeg.StepsOverview.MultiModalSegmentOrBuilder
Provides summarized information about different multi-modal segments of the `RouteLeg.steps`. A multi-modal segment is defined as one or more contiguous `RouteLegStep` that have the same `RouteTravelMode`. This field is not populated if the `RouteLeg` does not contain any multi-modal segments in the steps.Protobuf type
google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()NavigationInstruction for the multi-modal segment.The corresponding `RouteLegStep` index that is the end of a multi-modal segment.The corresponding `RouteLegStep` index that is the start of a multi-modal segment.The travel mode of the multi-modal segment.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorNavigationInstruction for the multi-modal segment.NavigationInstruction for the multi-modal segment.NavigationInstruction for the multi-modal segment.intThe corresponding `RouteLegStep` index that is the end of a multi-modal segment.intThe corresponding `RouteLegStep` index that is the start of a multi-modal segment.The travel mode of the multi-modal segment.intThe travel mode of the multi-modal segment.booleanNavigationInstruction for the multi-modal segment.booleanThe corresponding `RouteLegStep` index that is the end of a multi-modal segment.booleanThe corresponding `RouteLegStep` index that is the start of a multi-modal segment.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) NavigationInstruction for the multi-modal segment.NavigationInstruction for the multi-modal segment.setNavigationInstruction(NavigationInstruction.Builder builderForValue) NavigationInstruction for the multi-modal segment.setStepEndIndex(int value) The corresponding `RouteLegStep` index that is the end of a multi-modal segment.setStepStartIndex(int value) The corresponding `RouteLegStep` index that is the start of a multi-modal segment.setTravelMode(RouteTravelMode value) The travel mode of the multi-modal segment.setTravelModeValue(int value) The travel mode of the multi-modal segment.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<RouteLeg.StepsOverview.MultiModalSegment.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<RouteLeg.StepsOverview.MultiModalSegment.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<RouteLeg.StepsOverview.MultiModalSegment.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
public RouteLeg.StepsOverview.MultiModalSegment.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteLeg.StepsOverview.MultiModalSegment.Builder>
-
mergeFrom
public RouteLeg.StepsOverview.MultiModalSegment.Builder mergeFrom(RouteLeg.StepsOverview.MultiModalSegment other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RouteLeg.StepsOverview.MultiModalSegment.Builder>
-
mergeFrom
public RouteLeg.StepsOverview.MultiModalSegment.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<RouteLeg.StepsOverview.MultiModalSegment.Builder>- Throws:
IOException
-
hasStepStartIndex
public boolean hasStepStartIndex()The corresponding `RouteLegStep` index that is the start of a multi-modal segment.
optional int32 step_start_index = 1;- Specified by:
hasStepStartIndexin interfaceRouteLeg.StepsOverview.MultiModalSegmentOrBuilder- Returns:
- Whether the stepStartIndex field is set.
-
getStepStartIndex
public int getStepStartIndex()The corresponding `RouteLegStep` index that is the start of a multi-modal segment.
optional int32 step_start_index = 1;- Specified by:
getStepStartIndexin interfaceRouteLeg.StepsOverview.MultiModalSegmentOrBuilder- Returns:
- The stepStartIndex.
-
setStepStartIndex
The corresponding `RouteLegStep` index that is the start of a multi-modal segment.
optional int32 step_start_index = 1;- Parameters:
value- The stepStartIndex to set.- Returns:
- This builder for chaining.
-
clearStepStartIndex
The corresponding `RouteLegStep` index that is the start of a multi-modal segment.
optional int32 step_start_index = 1;- Returns:
- This builder for chaining.
-
hasStepEndIndex
public boolean hasStepEndIndex()The corresponding `RouteLegStep` index that is the end of a multi-modal segment.
optional int32 step_end_index = 2;- Specified by:
hasStepEndIndexin interfaceRouteLeg.StepsOverview.MultiModalSegmentOrBuilder- Returns:
- Whether the stepEndIndex field is set.
-
getStepEndIndex
public int getStepEndIndex()The corresponding `RouteLegStep` index that is the end of a multi-modal segment.
optional int32 step_end_index = 2;- Specified by:
getStepEndIndexin interfaceRouteLeg.StepsOverview.MultiModalSegmentOrBuilder- Returns:
- The stepEndIndex.
-
setStepEndIndex
The corresponding `RouteLegStep` index that is the end of a multi-modal segment.
optional int32 step_end_index = 2;- Parameters:
value- The stepEndIndex to set.- Returns:
- This builder for chaining.
-
clearStepEndIndex
The corresponding `RouteLegStep` index that is the end of a multi-modal segment.
optional int32 step_end_index = 2;- Returns:
- This builder for chaining.
-
getTravelModeValue
public int getTravelModeValue()The travel mode of the multi-modal segment.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4;- Specified by:
getTravelModeValuein interfaceRouteLeg.StepsOverview.MultiModalSegmentOrBuilder- Returns:
- The enum numeric value on the wire for travelMode.
-
setTravelModeValue
The travel mode of the multi-modal segment.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4;- Parameters:
value- The enum numeric value on the wire for travelMode to set.- Returns:
- This builder for chaining.
-
getTravelMode
The travel mode of the multi-modal segment.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4;- Specified by:
getTravelModein interfaceRouteLeg.StepsOverview.MultiModalSegmentOrBuilder- Returns:
- The travelMode.
-
setTravelMode
The travel mode of the multi-modal segment.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4;- Parameters:
value- The travelMode to set.- Returns:
- This builder for chaining.
-
clearTravelMode
The travel mode of the multi-modal segment.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4;- Returns:
- This builder for chaining.
-