generated from rmcguire/go-server-with-otel
32 lines
746 B
Protocol Buffer
32 lines
746 B
Protocol Buffer
syntax = "proto3";
|
|
package class.v1alpha1;
|
|
|
|
import "google/api/annotations.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "gitea.libretechconsulting.com/rmcguire/class-server/api/v1alpha1/class";
|
|
|
|
enum LogoType {
|
|
LOGO_TYPE_UNSPECIFIED = 0;
|
|
LOGO_TYPE_RANDOM = 1;
|
|
LOGO_TYPE_TECH = 2;
|
|
}
|
|
|
|
message GetClassLogoRequest {
|
|
LogoType logo_type = 1;
|
|
// Default is no padding
|
|
optional uint32 logo_padding = 2;
|
|
optional bool include_string = 3;
|
|
}
|
|
|
|
message GetClassLogoResponse {
|
|
bytes logo_bytes = 1;
|
|
string logo_string = 2;
|
|
}
|
|
|
|
service ClassService {
|
|
rpc GetClassLogo(GetClassLogoRequest) returns (GetClassLogoResponse) {
|
|
option (google.api.http) = {get: "/v1alpha1/class/logo"}; // grpc-gateway endpoint
|
|
}
|
|
}
|