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.GeneratedMessage.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.GeneratedMessage.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 type
google.maps.routing.v2.GeocodedWaypoint-
Method Summary
Modifier and TypeMethodDescriptionaddAllType(Iterable<String> values) The type(s) of the result, in the form of zero or more type tags.The type(s) of the result, in the form of zero or more type tags.addTypeBytes(com.google.protobuf.ByteString value) The type(s) of the result, in the form of zero or more type tags.build()clear()Indicates the status code resulting from the geocoding operation.The index of the corresponding intermediate waypoint in the request.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.The place ID for this result.The type(s) of the result, in the form of zero or more type tags.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIndicates the status code resulting from the geocoding operation.Indicates the status code resulting from the geocoding operation.Indicates the status code resulting from the geocoding operation.intThe index of the corresponding intermediate waypoint in the request.booleanIndicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address.The place ID for this result.com.google.protobuf.ByteStringThe place ID for this result.getType(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.intThe type(s) of the result, in the form of zero or more type tags.com.google.protobuf.ProtocolStringListThe type(s) of the result, in the form of zero or more type tags.booleanIndicates the status code resulting from the geocoding operation.booleanThe index of the corresponding intermediate waypoint in the request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GeocodedWaypoint other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGeocoderStatus(Status value) Indicates the status code resulting from the geocoding operation.setGeocoderStatus(Status value) Indicates the status code resulting from the geocoding operation.setGeocoderStatus(Status.Builder builderForValue) Indicates the status code resulting from the geocoding operation.setIntermediateWaypointRequestIndex(int value) The index of the corresponding intermediate waypoint in the request.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.setPlaceId(String value) The place ID for this result.setPlaceIdBytes(com.google.protobuf.ByteString value) The place ID for this result.The type(s) of the result, in the form of zero or more type tags.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<GeocodedWaypoint.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<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.GeneratedMessage.Builder<GeocodedWaypoint.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<GeocodedWaypoint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1;- Specified by:
getGeocoderStatusin interfaceGeocodedWaypointOrBuilder- Returns:
- The geocoderStatus.
-
setGeocoderStatus
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1; -
setGeocoderStatus
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1; -
mergeGeocoderStatus
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1; -
clearGeocoderStatus
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1; -
getGeocoderStatusBuilder
Indicates the status code resulting from the geocoding operation.
.google.rpc.Status geocoder_status = 1; -
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
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
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: [Address types and address component 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: [Address types and address component 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
The type(s) of the result, in the form of zero or more type tags. Supported types: [Address types and address component 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: [Address types and address component 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
The type(s) of the result, in the form of zero or more type tags. Supported types: [Address types and address component 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
The type(s) of the result, in the form of zero or more type tags. Supported types: [Address types and address component 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
The type(s) of the result, in the form of zero or more type tags. Supported types: [Address types and address component 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
The type(s) of the result, in the form of zero or more type tags. Supported types: [Address types and address component types](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string type = 3;- Returns:
- This builder for chaining.
-
addTypeBytes
The type(s) of the result, in the form of zero or more type tags. Supported types: [Address types and address component 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
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
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
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
The place ID for this result.
string place_id = 5;- Parameters:
value- The placeId to set.- Returns:
- This builder for chaining.
-
clearPlaceId
The place ID for this result.
string place_id = 5;- Returns:
- This builder for chaining.
-
setPlaceIdBytes
The place ID for this result.
string place_id = 5;- Parameters:
value- The bytes for placeId to set.- Returns:
- This builder for chaining.
-