Class FindNeighborsResponse.Neighbor.Builder

    • 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<FindNeighborsResponse.Neighbor.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<FindNeighborsResponse.Neighbor.Builder>
      • getDefaultInstanceForType

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

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

        public FindNeighborsResponse.Neighbor buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public boolean hasDatapoint()
         The datapoint of the neighbor.
         Note that full datapoints are returned only when "return_full_datapoint"
         is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
         fields are populated.
         
        .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
        Specified by:
        hasDatapoint in interface FindNeighborsResponse.NeighborOrBuilder
        Returns:
        Whether the datapoint field is set.
      • getDatapoint

        public IndexDatapoint getDatapoint()
         The datapoint of the neighbor.
         Note that full datapoints are returned only when "return_full_datapoint"
         is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
         fields are populated.
         
        .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
        Specified by:
        getDatapoint in interface FindNeighborsResponse.NeighborOrBuilder
        Returns:
        The datapoint.
      • setDatapoint

        public FindNeighborsResponse.Neighbor.Builder setDatapoint​(IndexDatapoint value)
         The datapoint of the neighbor.
         Note that full datapoints are returned only when "return_full_datapoint"
         is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
         fields are populated.
         
        .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
      • setDatapoint

        public FindNeighborsResponse.Neighbor.Builder setDatapoint​(IndexDatapoint.Builder builderForValue)
         The datapoint of the neighbor.
         Note that full datapoints are returned only when "return_full_datapoint"
         is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
         fields are populated.
         
        .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
      • mergeDatapoint

        public FindNeighborsResponse.Neighbor.Builder mergeDatapoint​(IndexDatapoint value)
         The datapoint of the neighbor.
         Note that full datapoints are returned only when "return_full_datapoint"
         is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
         fields are populated.
         
        .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
      • clearDatapoint

        public FindNeighborsResponse.Neighbor.Builder clearDatapoint()
         The datapoint of the neighbor.
         Note that full datapoints are returned only when "return_full_datapoint"
         is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
         fields are populated.
         
        .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
      • getDatapointBuilder

        public IndexDatapoint.Builder getDatapointBuilder()
         The datapoint of the neighbor.
         Note that full datapoints are returned only when "return_full_datapoint"
         is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
         fields are populated.
         
        .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
      • getDatapointOrBuilder

        public IndexDatapointOrBuilder getDatapointOrBuilder()
         The datapoint of the neighbor.
         Note that full datapoints are returned only when "return_full_datapoint"
         is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
         fields are populated.
         
        .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
        Specified by:
        getDatapointOrBuilder in interface FindNeighborsResponse.NeighborOrBuilder
      • setDistance

        public FindNeighborsResponse.Neighbor.Builder setDistance​(double value)
         The distance between the neighbor and the query vector.
         
        double distance = 2;
        Parameters:
        value - The distance to set.
        Returns:
        This builder for chaining.
      • clearDistance

        public FindNeighborsResponse.Neighbor.Builder clearDistance()
         The distance between the neighbor and the query vector.
         
        double distance = 2;
        Returns:
        This builder for chaining.