Athena Service Proto DefinitionΒΆ
1syntax = "proto3";
2
3package athena;
4
5import "google/protobuf/empty.proto";
6import "athena/models.proto";
7
8option csharp_namespace = "Resolver.Athena.Grpc";
9option java_outer_classname = "AthenaServiceProto";
10option java_package = "com.resolver.athena.grpc";
11option objc_class_prefix = "RAT";
12option php_namespace = "Resolver\\Athena\\Grpc";
13option ruby_package = "Resolver::Athena::Grpc";
14option swift_prefix = "RAT";
15
16// The classifier service definition.
17// Provides image classification capabilities with session-based streaming
18// and client management functionality.
19service ClassifierService {
20 // Classify images in a deployment-based streaming context
21 // Multiple affiliates can join the same deployment to share responses
22 // Supports bidirectional streaming for real-time classification
23 rpc Classify(stream ClassifyRequest) returns (stream ClassifyResponse);
24
25 // Retrieves a list of all active deployment IDs
26 // Returns the active deployment_id values that can be used in Classify requests
27 // Useful for monitoring and debugging active connections
28 rpc ListDeployments(google.protobuf.Empty) returns (ListDeploymentsResponse);
29
30 // Classifies a single image synchronously without deployment context
31 // Returns classification results immediately in a single request-response cycle
32 // Unlike the streaming Classify method, this operates independently of deployments
33 // and does not require session management or deployment coordination
34 //
35 // Use this for:
36 // - Low-throughput, low-latency classification scenarios
37 // - Simple one-off image classifications
38 // - Applications where immediate synchronous responses are preferred over streaming
39 // - Testing and debugging individual image classifications
40 //
41 // The response will contain either classification results or error information
42 // No deployment_id coordination is required or supported
43 rpc ClassifySingle(ClassificationInput) returns (ClassificationOutput);
44}