Initial commit
This commit is contained in:
28
skills/skill-adapter/assets/examples/unary_rpc.proto
Normal file
28
skills/skill-adapter/assets/examples/unary_rpc.proto
Normal file
@@ -0,0 +1,28 @@
|
||||
// examples/unary_rpc.proto
|
||||
//
|
||||
// This file defines a simple gRPC service with a unary RPC.
|
||||
//
|
||||
// To compile this .proto file:
|
||||
// protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative examples/unary_rpc.proto
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package example;
|
||||
|
||||
option go_package = "github.com/example/grpc-service-generator/example"; // Replace with your actual Go package
|
||||
|
||||
// The greeting service definition.
|
||||
service Greeter {
|
||||
// Sends a greeting
|
||||
rpc SayHello (HelloRequest) returns (HelloReply) {}
|
||||
}
|
||||
|
||||
// The request message containing the user's name.
|
||||
message HelloRequest {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// The response message containing the greetings
|
||||
message HelloReply {
|
||||
string message = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user