Class ElasticsearchInferenceAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchInferenceAsyncClient>
co.elastic.clients.elasticsearch.inference.ElasticsearchInferenceAsyncClient
public class ElasticsearchInferenceAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchInferenceAsyncClient>
Client for the inference namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchInferenceAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondelete
(DeleteInferenceRequest request) Delete an inference endpointDelete an inference endpointget()
Get an inference endpointget
(GetInferenceRequest request) Get an inference endpointGet an inference endpointinference
(InferenceRequest request) Perform inference on the servicePerform inference on the serviceput
(PutRequest request) Create an inference endpointfinal CompletableFuture<PutResponse>
Create an inference endpointwithTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchInferenceAsyncClient
-
ElasticsearchInferenceAsyncClient
public ElasticsearchInferenceAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchInferenceAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchInferenceAsyncClient>
-
delete
Delete an inference endpoint- See Also:
-
delete
public final CompletableFuture<DeleteInferenceResponse> delete(Function<DeleteInferenceRequest.Builder, ObjectBuilder<DeleteInferenceRequest>> fn) Delete an inference endpoint- Parameters:
fn
- a function that initializes a builder to create theDeleteInferenceRequest
- See Also:
-
get
Get an inference endpoint- See Also:
-
get
public final CompletableFuture<GetInferenceResponse> get(Function<GetInferenceRequest.Builder, ObjectBuilder<GetInferenceRequest>> fn) Get an inference endpoint- Parameters:
fn
- a function that initializes a builder to create theGetInferenceRequest
- See Also:
-
get
Get an inference endpoint- See Also:
-
inference
Perform inference on the service- See Also:
-
inference
public final CompletableFuture<InferenceResponse> inference(Function<InferenceRequest.Builder, ObjectBuilder<InferenceRequest>> fn) Perform inference on the service- Parameters:
fn
- a function that initializes a builder to create theInferenceRequest
- See Also:
-
put
Create an inference endpoint- See Also:
-
put
public final CompletableFuture<PutResponse> put(Function<PutRequest.Builder, ObjectBuilder<PutRequest>> fn) Create an inference endpoint- Parameters:
fn
- a function that initializes a builder to create thePutRequest
- See Also:
-