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.
19//
20// Endpoint: api.athena-risk-intelligence.com:443
21// Transport: TLS required
22service ClassifierService {
23  // Classify images in a deployment-based streaming context
24  // Multiple affiliates can join the same deployment to share responses
25  // Supports bidirectional streaming for real-time classification
26  rpc Classify(stream ClassifyRequest) returns (stream ClassifyResponse);
27
28  // Retrieves a list of all active deployment IDs
29  // Returns the active deployment_id values that can be used in Classify requests
30  // Useful for monitoring and debugging active connections
31  rpc ListDeployments(google.protobuf.Empty) returns (ListDeploymentsResponse);
32
33  // Classifies a single image synchronously without deployment context
34  // Returns classification results immediately in a single request-response cycle
35  // Unlike the streaming Classify method, this operates independently of deployments
36  // and does not require session management or deployment coordination
37  //
38  // Use this for:
39  // - Low-throughput, low-latency classification scenarios
40  // - Simple one-off image classifications
41  // - Applications where immediate synchronous responses are preferred over streaming
42  // - Testing and debugging individual image classifications
43  //
44  // The response will contain either classification results or error information
45  // No deployment_id coordination is required or supported
46  rpc ClassifySingle(ClassificationInput) returns (ClassificationOutput);
47}