mirror of
https://github.com/GayPizzaSpecifications/stable-diffusion-rpc.git
synced 2025-08-03 05:30:54 +00:00
31 lines
582 B
Protocol Buffer
31 lines
582 B
Protocol Buffer
/**
|
|
* Server metadata for the Stable Diffusion RPC service.
|
|
*/
|
|
syntax = "proto3";
|
|
package gay.pizza.stable.diffusion;
|
|
|
|
/**
|
|
* Utilize a prefix of 'Sd' for Swift.
|
|
*/
|
|
option swift_prefix = "Sd";
|
|
option java_multiple_files = true;
|
|
|
|
enum ServerRole {
|
|
unknown_role = 0;
|
|
node = 1;
|
|
coordinator = 2;
|
|
}
|
|
|
|
message ServerMetadata {
|
|
ServerRole role = 1;
|
|
}
|
|
|
|
message GetServerMetadataRequest {}
|
|
message GetServerMetadataResponse {
|
|
ServerMetadata metadata = 1;
|
|
}
|
|
|
|
service ServerMetadataService {
|
|
rpc GetServerMetadata(GetServerMetadataRequest) returns (GetServerMetadataResponse);
|
|
}
|