Class QdrantGrpcClient.Builder

java.lang.Object
io.qdrant.client.QdrantGrpcClient.Builder
Enclosing class:
QdrantGrpcClient

public static class QdrantGrpcClient.Builder extends Object
builder for QdrantGrpcClient
  • Method Details

    • withApiKey

      public QdrantGrpcClient.Builder withApiKey(String apiKey)
      Sets the API key to use for authentication
      Parameters:
      apiKey - The API key to use.
      Returns:
      this
    • withTimeout

      public QdrantGrpcClient.Builder withTimeout(@Nullable Duration timeout)
      Sets a default timeout for all requests.
      Parameters:
      timeout - The timeout.
      Returns:
      this
    • withCallCredentials

      public QdrantGrpcClient.Builder withCallCredentials(@Nullable io.grpc.CallCredentials callCredentials)
      Sets the credential data that will be propagated to the server via request metadata for each RPC.
      Parameters:
      callCredentials - The call credentials to use.
      Returns:
      this
    • build

      public QdrantGrpcClient build()
      Builds a new instance of QdrantGrpcClient
      Returns:
      a new instance of QdrantGrpcClient