Package com.google.maps.routing.v2
Class GeocodedWaypoint.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
- com.google.maps.routing.v2.GeocodedWaypoint.Builder
-
- All Implemented Interfaces:
GeocodedWaypointOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GeocodedWaypoint
public static final class GeocodedWaypoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder> implements GeocodedWaypointOrBuilder
Details about the locations used as waypoints. Only populated for address waypoints. Includes details about the geocoding results for the purposes of determining what the address was geocoded to.
Protobuf typegoogle.maps.routing.v2.GeocodedWaypoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GeocodedWaypoint.BuilderaddAllType(Iterable<String> values)The type(s) of the result, in the form of zero or more type tags.GeocodedWaypoint.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GeocodedWaypoint.BuilderaddType(String value)The type(s) of the result, in the form of zero or more type tags.GeocodedWaypoint.BuilderaddTypeBytes(com.google.protobuf.ByteString value)The type(s) of the result, in the form of zero or more type tags.GeocodedWaypointbuild()GeocodedWaypointbuildPartial()GeocodedWaypoint.Builderclear()GeocodedWaypoint.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GeocodedWaypoint.BuilderclearGeocoderStatus()Indicates the status code resulting from the geocoding operation.GeocodedWaypoint.BuilderclearIntermediateWaypointRequestIndex()The index of the corresponding intermediate waypoint in the request.GeocodedWaypoint.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GeocodedWaypoint.BuilderclearPartialMatch()Indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address.GeocodedWaypoint.BuilderclearPlaceId()The place ID for this result.GeocodedWaypoint.BuilderclearType()The type(s) of the result, in the form of zero or more type tags.GeocodedWaypoint.Builderclone()GeocodedWaypointgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.rpc.StatusgetGeocoderStatus()Indicates the status code resulting from the geocoding operation.com.google.rpc.Status.BuildergetGeocoderStatusBuilder()Indicates the status code resulting from the geocoding operation.com.google.rpc.StatusOrBuildergetGeocoderStatusOrBuilder()Indicates the status code resulting from the geocoding operation.intgetIntermediateWaypointRequestIndex()The index of the corresponding intermediate waypoint in the request.booleangetPartialMatch()Indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address.StringgetPlaceId()The place ID for this result.com.google.protobuf.ByteStringgetPlaceIdBytes()The place ID for this result.StringgetType(int index)The type(s) of the result, in the form of zero or more type tags.com.google.protobuf.ByteStringgetTypeBytes(int index)The type(s) of the result, in the form of zero or more type tags.intgetTypeCount()The type(s) of the result, in the form of zero or more type tags.com.google.protobuf.ProtocolStringListgetTypeList()The type(s) of the result, in the form of zero or more type tags.booleanhasGeocoderStatus()Indicates the status code resulting from the geocoding operation.booleanhasIntermediateWaypointRequestIndex()The index of the corresponding intermediate waypoint in the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GeocodedWaypoint.BuildermergeFrom(GeocodedWaypoint other)GeocodedWaypoint.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GeocodedWaypoint.BuildermergeFrom(com.google.protobuf.Message other)GeocodedWaypoint.BuildermergeGeocoderStatus(com.google.rpc.Status value)Indicates the status code resulting from the geocoding operation.GeocodedWaypoint.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GeocodedWaypoint.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GeocodedWaypoint.BuildersetGeocoderStatus(com.google.rpc.Status value)Indicates the status code resulting from the geocoding operation.GeocodedWaypoint.BuildersetGeocoderStatus(com.google.rpc.Status.Builder builderForValue)Indicates the status code resulting from the geocoding operation.GeocodedWaypoint.BuildersetIntermediateWaypointRequestIndex(int value)The index of the corresponding intermediate waypoint in the request.GeocodedWaypoint.BuildersetPartialMatch(boolean value)Indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address.GeocodedWaypoint.BuildersetPlaceId(String value)The place ID for this result.GeocodedWaypoint.BuildersetPlaceIdBytes(com.google.protobuf.ByteString value)The place ID for this result.GeocodedWaypoint.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GeocodedWaypoint.BuildersetType(int index, String value)The type(s) of the result, in the form of zero or more type tags.GeocodedWaypoint.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
clear
public GeocodedWaypoint.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.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.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
getDefaultInstanceForType
public GeocodedWaypoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GeocodedWaypoint build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GeocodedWaypoint buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GeocodedWaypoint.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
setField
public GeocodedWaypoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
clearField
public GeocodedWaypoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
clearOneof
public GeocodedWaypoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
setRepeatedField
public GeocodedWaypoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
addRepeatedField
public GeocodedWaypoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
mergeFrom
public GeocodedWaypoint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GeocodedWaypoint.Builder>
-
mergeFrom
public GeocodedWaypoint.Builder mergeFrom(GeocodedWaypoint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
mergeFrom
public GeocodedWaypoint.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<GeocodedWaypoint.Builder>- Throws:
IOException
-
hasGeocoderStatus
public boolean hasGeocoderStatus()
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1;- Specified by:
hasGeocoderStatusin interfaceGeocodedWaypointOrBuilder- Returns:
- Whether the geocoderStatus field is set.
-
getGeocoderStatus
public com.google.rpc.Status getGeocoderStatus()
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1;- Specified by:
getGeocoderStatusin interfaceGeocodedWaypointOrBuilder- Returns:
- The geocoderStatus.
-
setGeocoderStatus
public GeocodedWaypoint.Builder setGeocoderStatus(com.google.rpc.Status value)
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1;
-
setGeocoderStatus
public GeocodedWaypoint.Builder setGeocoderStatus(com.google.rpc.Status.Builder builderForValue)
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1;
-
mergeGeocoderStatus
public GeocodedWaypoint.Builder mergeGeocoderStatus(com.google.rpc.Status value)
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1;
-
clearGeocoderStatus
public GeocodedWaypoint.Builder clearGeocoderStatus()
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1;
-
getGeocoderStatusBuilder
public com.google.rpc.Status.Builder getGeocoderStatusBuilder()
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1;
-
getGeocoderStatusOrBuilder
public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder()
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1;- Specified by:
getGeocoderStatusOrBuilderin interfaceGeocodedWaypointOrBuilder
-
hasIntermediateWaypointRequestIndex
public boolean hasIntermediateWaypointRequestIndex()
The index of the corresponding intermediate waypoint in the request. Only populated if the corresponding waypoint is an intermediate waypoint.
optional int32 intermediate_waypoint_request_index = 2;- Specified by:
hasIntermediateWaypointRequestIndexin interfaceGeocodedWaypointOrBuilder- Returns:
- Whether the intermediateWaypointRequestIndex field is set.
-
getIntermediateWaypointRequestIndex
public int getIntermediateWaypointRequestIndex()
The index of the corresponding intermediate waypoint in the request. Only populated if the corresponding waypoint is an intermediate waypoint.
optional int32 intermediate_waypoint_request_index = 2;- Specified by:
getIntermediateWaypointRequestIndexin interfaceGeocodedWaypointOrBuilder- Returns:
- The intermediateWaypointRequestIndex.
-
setIntermediateWaypointRequestIndex
public GeocodedWaypoint.Builder setIntermediateWaypointRequestIndex(int value)
The index of the corresponding intermediate waypoint in the request. Only populated if the corresponding waypoint is an intermediate waypoint.
optional int32 intermediate_waypoint_request_index = 2;- Parameters:
value- The intermediateWaypointRequestIndex to set.- Returns:
- This builder for chaining.
-
clearIntermediateWaypointRequestIndex
public GeocodedWaypoint.Builder clearIntermediateWaypointRequestIndex()
The index of the corresponding intermediate waypoint in the request. Only populated if the corresponding waypoint is an intermediate waypoint.
optional int32 intermediate_waypoint_request_index = 2;- Returns:
- This builder for chaining.
-
getTypeList
public com.google.protobuf.ProtocolStringList getTypeList()
The type(s) of the result, in the form of zero or more type tags. Supported types: https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
repeated string type = 3;- Specified by:
getTypeListin interfaceGeocodedWaypointOrBuilder- Returns:
- A list containing the type.
-
getTypeCount
public int getTypeCount()
The type(s) of the result, in the form of zero or more type tags. Supported types: https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
repeated string type = 3;- Specified by:
getTypeCountin interfaceGeocodedWaypointOrBuilder- Returns:
- The count of type.
-
getType
public String getType(int index)
The type(s) of the result, in the form of zero or more type tags. Supported types: https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
repeated string type = 3;- Specified by:
getTypein interfaceGeocodedWaypointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The type at the given index.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes(int index)
The type(s) of the result, in the form of zero or more type tags. Supported types: https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
repeated string type = 3;- Specified by:
getTypeBytesin interfaceGeocodedWaypointOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the type at the given index.
-
setType
public GeocodedWaypoint.Builder setType(int index, String value)
The type(s) of the result, in the form of zero or more type tags. Supported types: https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
repeated string type = 3;- Parameters:
index- The index to set the value at.value- The type to set.- Returns:
- This builder for chaining.
-
addType
public GeocodedWaypoint.Builder addType(String value)
The type(s) of the result, in the form of zero or more type tags. Supported types: https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
repeated string type = 3;- Parameters:
value- The type to add.- Returns:
- This builder for chaining.
-
addAllType
public GeocodedWaypoint.Builder addAllType(Iterable<String> values)
The type(s) of the result, in the form of zero or more type tags. Supported types: https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
repeated string type = 3;- Parameters:
values- The type to add.- Returns:
- This builder for chaining.
-
clearType
public GeocodedWaypoint.Builder clearType()
The type(s) of the result, in the form of zero or more type tags. Supported types: https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
repeated string type = 3;- Returns:
- This builder for chaining.
-
addTypeBytes
public GeocodedWaypoint.Builder addTypeBytes(com.google.protobuf.ByteString value)
The type(s) of the result, in the form of zero or more type tags. Supported types: https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
repeated string type = 3;- Parameters:
value- The bytes of the type to add.- Returns:
- This builder for chaining.
-
getPartialMatch
public boolean getPartialMatch()
Indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address. You may wish to examine the original request for misspellings and/or an incomplete address.
bool partial_match = 4;- Specified by:
getPartialMatchin interfaceGeocodedWaypointOrBuilder- Returns:
- The partialMatch.
-
setPartialMatch
public GeocodedWaypoint.Builder setPartialMatch(boolean value)
Indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address. You may wish to examine the original request for misspellings and/or an incomplete address.
bool partial_match = 4;- Parameters:
value- The partialMatch to set.- Returns:
- This builder for chaining.
-
clearPartialMatch
public GeocodedWaypoint.Builder clearPartialMatch()
Indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address. You may wish to examine the original request for misspellings and/or an incomplete address.
bool partial_match = 4;- Returns:
- This builder for chaining.
-
getPlaceId
public String getPlaceId()
The place ID for this result.
string place_id = 5;- Specified by:
getPlaceIdin interfaceGeocodedWaypointOrBuilder- Returns:
- The placeId.
-
getPlaceIdBytes
public com.google.protobuf.ByteString getPlaceIdBytes()
The place ID for this result.
string place_id = 5;- Specified by:
getPlaceIdBytesin interfaceGeocodedWaypointOrBuilder- Returns:
- The bytes for placeId.
-
setPlaceId
public GeocodedWaypoint.Builder setPlaceId(String value)
The place ID for this result.
string place_id = 5;- Parameters:
value- The placeId to set.- Returns:
- This builder for chaining.
-
clearPlaceId
public GeocodedWaypoint.Builder clearPlaceId()
The place ID for this result.
string place_id = 5;- Returns:
- This builder for chaining.
-
setPlaceIdBytes
public GeocodedWaypoint.Builder setPlaceIdBytes(com.google.protobuf.ByteString value)
The place ID for this result.
string place_id = 5;- Parameters:
value- The bytes for placeId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GeocodedWaypoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
mergeUnknownFields
public final GeocodedWaypoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
-