Table of Contents

Class ClassifierService.ClassifierServiceClient

Namespace
Resolver.Athena.Grpc
Assembly
Resolver.Athena.Grpc.Client.dll

Client for ClassifierService

public class ClassifierService.ClassifierServiceClient : ClientBase<ClassifierService.ClassifierServiceClient>
Inheritance
ClassifierService.ClassifierServiceClient
Inherited Members

Constructors

ClassifierServiceClient()

Protected parameterless constructor to allow creation of test doubles.

protected ClassifierServiceClient()

ClassifierServiceClient(CallInvoker)

Creates a new client for ClassifierService that uses a custom CallInvoker.

public ClassifierServiceClient(CallInvoker callInvoker)

Parameters

callInvoker CallInvoker

The callInvoker to use to make remote calls.

ClassifierServiceClient(ChannelBase)

Creates a new client for ClassifierService

public ClassifierServiceClient(ChannelBase channel)

Parameters

channel ChannelBase

The channel to use to make remote calls.

ClassifierServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

protected ClassifierServiceClient(ClientBase.ClientBaseConfiguration configuration)

Parameters

configuration ClientBase.ClientBaseConfiguration

The client configuration.

Methods

Classify(CallOptions)

Classify images in a deployment-based streaming context Multiple affiliates can join the same deployment to share responses Supports bidirectional streaming for real-time classification

public virtual AsyncDuplexStreamingCall<ClassifyRequest, ClassifyResponse> Classify(CallOptions options)

Parameters

options CallOptions

The options for the call.

Returns

AsyncDuplexStreamingCall<ClassifyRequest, ClassifyResponse>

The call object.

Classify(Metadata, DateTime?, CancellationToken)

Classify images in a deployment-based streaming context Multiple affiliates can join the same deployment to share responses Supports bidirectional streaming for real-time classification

public virtual AsyncDuplexStreamingCall<ClassifyRequest, ClassifyResponse> Classify(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime?

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns

AsyncDuplexStreamingCall<ClassifyRequest, ClassifyResponse>

The call object.

ClassifySingle(ClassificationInput, CallOptions)

Classifies a single image synchronously without deployment context Returns classification results immediately in a single request-response cycle Unlike the streaming Classify method, this operates independently of deployments and does not require session management or deployment coordination

Use this for:

  • Low-throughput, low-latency classification scenarios
  • Simple one-off image classifications
  • Applications where immediate synchronous responses are preferred over streaming
  • Testing and debugging individual image classifications

The response will contain either classification results or error information No deployment_id coordination is required or supported

public virtual ClassificationOutput ClassifySingle(ClassificationInput request, CallOptions options)

Parameters

request ClassificationInput

The request to send to the server.

options CallOptions

The options for the call.

Returns

ClassificationOutput

The response received from the server.

ClassifySingle(ClassificationInput, Metadata, DateTime?, CancellationToken)

Classifies a single image synchronously without deployment context Returns classification results immediately in a single request-response cycle Unlike the streaming Classify method, this operates independently of deployments and does not require session management or deployment coordination

Use this for:

  • Low-throughput, low-latency classification scenarios
  • Simple one-off image classifications
  • Applications where immediate synchronous responses are preferred over streaming
  • Testing and debugging individual image classifications

The response will contain either classification results or error information No deployment_id coordination is required or supported

public virtual ClassificationOutput ClassifySingle(ClassificationInput request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

request ClassificationInput

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime?

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns

ClassificationOutput

The response received from the server.

ClassifySingleAsync(ClassificationInput, CallOptions)

Classifies a single image synchronously without deployment context Returns classification results immediately in a single request-response cycle Unlike the streaming Classify method, this operates independently of deployments and does not require session management or deployment coordination

Use this for:

  • Low-throughput, low-latency classification scenarios
  • Simple one-off image classifications
  • Applications where immediate synchronous responses are preferred over streaming
  • Testing and debugging individual image classifications

The response will contain either classification results or error information No deployment_id coordination is required or supported

public virtual AsyncUnaryCall<ClassificationOutput> ClassifySingleAsync(ClassificationInput request, CallOptions options)

Parameters

request ClassificationInput

The request to send to the server.

options CallOptions

The options for the call.

Returns

AsyncUnaryCall<ClassificationOutput>

The call object.

ClassifySingleAsync(ClassificationInput, Metadata, DateTime?, CancellationToken)

Classifies a single image synchronously without deployment context Returns classification results immediately in a single request-response cycle Unlike the streaming Classify method, this operates independently of deployments and does not require session management or deployment coordination

Use this for:

  • Low-throughput, low-latency classification scenarios
  • Simple one-off image classifications
  • Applications where immediate synchronous responses are preferred over streaming
  • Testing and debugging individual image classifications

The response will contain either classification results or error information No deployment_id coordination is required or supported

public virtual AsyncUnaryCall<ClassificationOutput> ClassifySingleAsync(ClassificationInput request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

request ClassificationInput

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime?

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns

AsyncUnaryCall<ClassificationOutput>

The call object.

ListDeployments(Empty, CallOptions)

Retrieves a list of all active deployment IDs Returns the active deployment_id values that can be used in Classify requests Useful for monitoring and debugging active connections

public virtual ListDeploymentsResponse ListDeployments(Empty request, CallOptions options)

Parameters

request Empty

The request to send to the server.

options CallOptions

The options for the call.

Returns

ListDeploymentsResponse

The response received from the server.

ListDeployments(Empty, Metadata, DateTime?, CancellationToken)

Retrieves a list of all active deployment IDs Returns the active deployment_id values that can be used in Classify requests Useful for monitoring and debugging active connections

public virtual ListDeploymentsResponse ListDeployments(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

request Empty

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime?

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns

ListDeploymentsResponse

The response received from the server.

ListDeploymentsAsync(Empty, CallOptions)

Retrieves a list of all active deployment IDs Returns the active deployment_id values that can be used in Classify requests Useful for monitoring and debugging active connections

public virtual AsyncUnaryCall<ListDeploymentsResponse> ListDeploymentsAsync(Empty request, CallOptions options)

Parameters

request Empty

The request to send to the server.

options CallOptions

The options for the call.

Returns

AsyncUnaryCall<ListDeploymentsResponse>

The call object.

ListDeploymentsAsync(Empty, Metadata, DateTime?, CancellationToken)

Retrieves a list of all active deployment IDs Returns the active deployment_id values that can be used in Classify requests Useful for monitoring and debugging active connections

public virtual AsyncUnaryCall<ListDeploymentsResponse> ListDeploymentsAsync(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

request Empty

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime?

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns

AsyncUnaryCall<ListDeploymentsResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

protected override ClassifierService.ClassifierServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Parameters

configuration ClientBase.ClientBaseConfiguration

Returns

ClassifierService.ClassifierServiceClient