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.Builder
addAllType(Iterable<String> values)
The type(s) of the result, in the form of zero or more type tags.GeocodedWaypoint.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GeocodedWaypoint.Builder
addType(String value)
The type(s) of the result, in the form of zero or more type tags.GeocodedWaypoint.Builder
addTypeBytes(com.google.protobuf.ByteString value)
The type(s) of the result, in the form of zero or more type tags.GeocodedWaypoint
build()
GeocodedWaypoint
buildPartial()
GeocodedWaypoint.Builder
clear()
GeocodedWaypoint.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GeocodedWaypoint.Builder
clearGeocoderStatus()
Indicates the status code resulting from the geocoding operation.GeocodedWaypoint.Builder
clearIntermediateWaypointRequestIndex()
The index of the corresponding intermediate waypoint in the request.GeocodedWaypoint.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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.GeocodedWaypoint.Builder
clearPlaceId()
The place ID for this result.GeocodedWaypoint.Builder
clearType()
The type(s) of the result, in the form of zero or more type tags.GeocodedWaypoint.Builder
clone()
GeocodedWaypoint
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.rpc.Status
getGeocoderStatus()
Indicates the status code resulting from the geocoding operation.com.google.rpc.Status.Builder
getGeocoderStatusBuilder()
Indicates the status code resulting from the geocoding operation.com.google.rpc.StatusOrBuilder
getGeocoderStatusOrBuilder()
Indicates the status code resulting from the geocoding operation.int
getIntermediateWaypointRequestIndex()
The index of the corresponding intermediate waypoint in the request.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.String
getPlaceId()
The place ID for this result.com.google.protobuf.ByteString
getPlaceIdBytes()
The place ID for this result.String
getType(int index)
The type(s) of the result, in the form of zero or more type tags.com.google.protobuf.ByteString
getTypeBytes(int index)
The type(s) of the result, in the form of zero or more type tags.int
getTypeCount()
The type(s) of the result, in the form of zero or more type tags.com.google.protobuf.ProtocolStringList
getTypeList()
The type(s) of the result, in the form of zero or more type tags.boolean
hasGeocoderStatus()
Indicates the status code resulting from the geocoding operation.boolean
hasIntermediateWaypointRequestIndex()
The index of the corresponding intermediate waypoint in the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GeocodedWaypoint.Builder
mergeFrom(GeocodedWaypoint other)
GeocodedWaypoint.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GeocodedWaypoint.Builder
mergeFrom(com.google.protobuf.Message other)
GeocodedWaypoint.Builder
mergeGeocoderStatus(com.google.rpc.Status value)
Indicates the status code resulting from the geocoding operation.GeocodedWaypoint.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GeocodedWaypoint.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GeocodedWaypoint.Builder
setGeocoderStatus(com.google.rpc.Status value)
Indicates the status code resulting from the geocoding operation.GeocodedWaypoint.Builder
setGeocoderStatus(com.google.rpc.Status.Builder builderForValue)
Indicates the status code resulting from the geocoding operation.GeocodedWaypoint.Builder
setIntermediateWaypointRequestIndex(int value)
The index of the corresponding intermediate waypoint in the request.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.GeocodedWaypoint.Builder
setPlaceId(String value)
The place ID for this result.GeocodedWaypoint.Builder
setPlaceIdBytes(com.google.protobuf.ByteString value)
The place ID for this result.GeocodedWaypoint.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GeocodedWaypoint.Builder
setType(int index, String value)
The type(s) of the result, in the form of zero or more type tags.GeocodedWaypoint.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
clear
public GeocodedWaypoint.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
getDefaultInstanceForType
public GeocodedWaypoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GeocodedWaypoint build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GeocodedWaypoint buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GeocodedWaypoint.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
setField
public GeocodedWaypoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
clearField
public GeocodedWaypoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
clearOneof
public GeocodedWaypoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
setRepeatedField
public GeocodedWaypoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
addRepeatedField
public GeocodedWaypoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
mergeFrom
public GeocodedWaypoint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GeocodedWaypoint.Builder>
-
mergeFrom
public GeocodedWaypoint.Builder mergeFrom(GeocodedWaypoint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasGeocoderStatus
in 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:
getGeocoderStatus
in 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:
getGeocoderStatusOrBuilder
in 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:
hasIntermediateWaypointRequestIndex
in 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:
getIntermediateWaypointRequestIndex
in 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:
getTypeList
in 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:
getTypeCount
in 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:
getType
in 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:
getTypeBytes
in 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:
getPartialMatch
in 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:
getPlaceId
in interfaceGeocodedWaypointOrBuilder
- Returns:
- The placeId.
-
getPlaceIdBytes
public com.google.protobuf.ByteString getPlaceIdBytes()
The place ID for this result.
string place_id = 5;
- Specified by:
getPlaceIdBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
mergeUnknownFields
public final GeocodedWaypoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
-
-