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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public GeocodedWaypoint.Builder mergeFrom(GeocodedWaypoint other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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 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(Status value)
       Indicates the status code resulting from the geocoding operation.
       
      .google.rpc.Status geocoder_status = 1;
    • setGeocoderStatus

      public GeocodedWaypoint.Builder setGeocoderStatus(Status.Builder builderForValue)
       Indicates the status code resulting from the geocoding operation.
       
      .google.rpc.Status geocoder_status = 1;
    • mergeGeocoderStatus

      public GeocodedWaypoint.Builder mergeGeocoderStatus(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 Status.Builder getGeocoderStatusBuilder()
       Indicates the status code resulting from the geocoding operation.
       
      .google.rpc.Status geocoder_status = 1;
    • getGeocoderStatusOrBuilder

      public 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: [Address types and address component
       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: [Address types and address component
       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: [Address types and address component
       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: [Address types and address component
       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: [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

      public GeocodedWaypoint.Builder addType(String value)
       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

      public GeocodedWaypoint.Builder addAllType(Iterable<String> values)
       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

      public GeocodedWaypoint.Builder 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

      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: [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:
      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.
    • getPlaceId

      public String getPlaceId()
       The place ID for this result.
       
      string place_id = 5;
      Specified by:
      getPlaceId in interface GeocodedWaypointOrBuilder
      Returns:
      The placeId.
    • 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.