Class GeocodingResults.Builder

  • All Implemented Interfaces:
    GeocodingResultsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    GeocodingResults

    public static final class GeocodingResults.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
    implements GeocodingResultsOrBuilder
     Contains [GeocodedWaypoints][google.maps.routing.v2.GeocodedWaypoint] for
     origin, destination and intermediate waypoints. Only populated for address
     waypoints.
     
    Protobuf type google.maps.routing.v2.GeocodingResults
    • 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<GeocodingResults.Builder>
      • clear

        public GeocodingResults.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<GeocodingResults.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<GeocodingResults.Builder>
      • getDefaultInstanceForType

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

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

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

        public GeocodingResults.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<GeocodingResults.Builder>
      • setField

        public GeocodingResults.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<GeocodingResults.Builder>
      • clearField

        public GeocodingResults.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<GeocodingResults.Builder>
      • clearOneof

        public GeocodingResults.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<GeocodingResults.Builder>
      • setRepeatedField

        public GeocodingResults.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<GeocodingResults.Builder>
      • addRepeatedField

        public GeocodingResults.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<GeocodingResults.Builder>
      • mergeFrom

        public GeocodingResults.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<GeocodingResults.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
      • mergeFrom

        public GeocodingResults.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<GeocodingResults.Builder>
        Throws:
        IOException
      • hasOrigin

        public boolean hasOrigin()
         Origin geocoded waypoint.
         
        .google.maps.routing.v2.GeocodedWaypoint origin = 1;
        Specified by:
        hasOrigin in interface GeocodingResultsOrBuilder
        Returns:
        Whether the origin field is set.
      • clearOrigin

        public GeocodingResults.Builder clearOrigin()
         Origin geocoded waypoint.
         
        .google.maps.routing.v2.GeocodedWaypoint origin = 1;
      • getOriginBuilder

        public GeocodedWaypoint.Builder getOriginBuilder()
         Origin geocoded waypoint.
         
        .google.maps.routing.v2.GeocodedWaypoint origin = 1;
      • hasDestination

        public boolean hasDestination()
         Destination geocoded waypoint.
         
        .google.maps.routing.v2.GeocodedWaypoint destination = 2;
        Specified by:
        hasDestination in interface GeocodingResultsOrBuilder
        Returns:
        Whether the destination field is set.
      • clearDestination

        public GeocodingResults.Builder clearDestination()
         Destination geocoded waypoint.
         
        .google.maps.routing.v2.GeocodedWaypoint destination = 2;
      • getDestinationBuilder

        public GeocodedWaypoint.Builder getDestinationBuilder()
         Destination geocoded waypoint.
         
        .google.maps.routing.v2.GeocodedWaypoint destination = 2;
      • getIntermediatesList

        public List<GeocodedWaypoint> getIntermediatesList()
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
        Specified by:
        getIntermediatesList in interface GeocodingResultsOrBuilder
      • getIntermediatesCount

        public int getIntermediatesCount()
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
        Specified by:
        getIntermediatesCount in interface GeocodingResultsOrBuilder
      • getIntermediates

        public GeocodedWaypoint getIntermediates​(int index)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
        Specified by:
        getIntermediates in interface GeocodingResultsOrBuilder
      • setIntermediates

        public GeocodingResults.Builder setIntermediates​(int index,
                                                         GeocodedWaypoint value)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • setIntermediates

        public GeocodingResults.Builder setIntermediates​(int index,
                                                         GeocodedWaypoint.Builder builderForValue)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • addIntermediates

        public GeocodingResults.Builder addIntermediates​(GeocodedWaypoint value)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • addIntermediates

        public GeocodingResults.Builder addIntermediates​(int index,
                                                         GeocodedWaypoint value)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • addIntermediates

        public GeocodingResults.Builder addIntermediates​(GeocodedWaypoint.Builder builderForValue)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • addIntermediates

        public GeocodingResults.Builder addIntermediates​(int index,
                                                         GeocodedWaypoint.Builder builderForValue)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • addAllIntermediates

        public GeocodingResults.Builder addAllIntermediates​(Iterable<? extends GeocodedWaypoint> values)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • clearIntermediates

        public GeocodingResults.Builder clearIntermediates()
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • removeIntermediates

        public GeocodingResults.Builder removeIntermediates​(int index)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • getIntermediatesBuilder

        public GeocodedWaypoint.Builder getIntermediatesBuilder​(int index)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • getIntermediatesOrBuilder

        public GeocodedWaypointOrBuilder getIntermediatesOrBuilder​(int index)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
        Specified by:
        getIntermediatesOrBuilder in interface GeocodingResultsOrBuilder
      • getIntermediatesOrBuilderList

        public List<? extends GeocodedWaypointOrBuilder> getIntermediatesOrBuilderList()
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
        Specified by:
        getIntermediatesOrBuilderList in interface GeocodingResultsOrBuilder
      • addIntermediatesBuilder

        public GeocodedWaypoint.Builder addIntermediatesBuilder()
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • addIntermediatesBuilder

        public GeocodedWaypoint.Builder addIntermediatesBuilder​(int index)
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • getIntermediatesBuilderList

        public List<GeocodedWaypoint.Builder> getIntermediatesBuilderList()
         A list of intermediate geocoded waypoints each containing an index field
         that corresponds to the zero-based position of the waypoint in the order
         they were specified in the request.
         
        repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      • setUnknownFields

        public final GeocodingResults.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<GeocodingResults.Builder>
      • mergeUnknownFields

        public final GeocodingResults.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<GeocodingResults.Builder>