Class 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 type google.maps.routing.v2.GeocodedWaypoint
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
      • clear

        public GeocodedWaypoint.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
      • getDefaultInstanceForType

        public GeocodedWaypoint getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GeocodedWaypoint build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GeocodedWaypoint buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public GeocodedWaypoint.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
      • setField

        public GeocodedWaypoint.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
      • clearField

        public GeocodedWaypoint.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
      • clearOneof

        public GeocodedWaypoint.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
      • addRepeatedField

        public GeocodedWaypoint.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
      • mergeFrom

        public GeocodedWaypoint.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeocodedWaypoint.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface GeocodedWaypointOrBuilder
        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 interface GeocodedWaypointOrBuilder
        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 interface GeocodedWaypointOrBuilder
      • 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 interface GeocodedWaypointOrBuilder
        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 interface GeocodedWaypointOrBuilder
        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 interface GeocodedWaypointOrBuilder
        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 interface GeocodedWaypointOrBuilder
        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 interface GeocodedWaypointOrBuilder
        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 interface GeocodedWaypointOrBuilder
        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 interface GeocodedWaypointOrBuilder
        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.
      • getPlaceIdBytes

        public com.google.protobuf.ByteString getPlaceIdBytes()
         The place ID for this result.
         
        string place_id = 5;
        Specified by:
        getPlaceIdBytes in interface GeocodedWaypointOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>
      • mergeUnknownFields

        public final GeocodedWaypoint.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodedWaypoint.Builder>