Class RecommendChunksRequest


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]",
               comments="Generator version: 7.4.0")
    public class RecommendChunksRequest
    extends Object
    RecommendChunksRequest
    • Constructor Detail

      • RecommendChunksRequest

        public RecommendChunksRequest()
    • Method Detail

      • setFilters

        public void setFilters​(ChunkFilter filters)
      • getLimit

        @Nullable
        @Min(0L)
        public @Min(0L) Long getLimit()
        The number of chunks to return. This is the number of chunks which will be returned in the response. The default is 10. minimum: 0
        Returns:
        limit
      • setLimit

        public void setLimit​(Long limit)
      • getNegativeChunkIds

        @Nullable
        @Valid
        public @Valid List<UUID> getNegativeChunkIds()
        The ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks.
        Returns:
        negativeChunkIds
      • setNegativeChunkIds

        public void setNegativeChunkIds​(List<UUID> negativeChunkIds)
      • getNegativeTrackingIds

        @Nullable
        public List<String> getNegativeTrackingIds()
        The tracking_ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks.
        Returns:
        negativeTrackingIds
      • setNegativeTrackingIds

        public void setNegativeTrackingIds​(List<String> negativeTrackingIds)
      • getPositiveChunkIds

        @Nullable
        @Valid
        public @Valid List<UUID> getPositiveChunkIds()
        The ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.
        Returns:
        positiveChunkIds
      • setPositiveChunkIds

        public void setPositiveChunkIds​(List<UUID> positiveChunkIds)
      • getPositiveTrackingIds

        @Nullable
        public List<String> getPositiveTrackingIds()
        The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.
        Returns:
        positiveTrackingIds
      • setPositiveTrackingIds

        public void setPositiveTrackingIds​(List<String> positiveTrackingIds)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to RecommendChunksRequest
      • fromJson

        public static RecommendChunksRequest fromJson​(String jsonString)
                                               throws IOException
        Create an instance of RecommendChunksRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of RecommendChunksRequest
        Throws:
        IOException - if the JSON string is invalid with respect to RecommendChunksRequest
      • toJson

        public String toJson()
        Convert an instance of RecommendChunksRequest to an JSON string
        Returns:
        JSON string