| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
syntax = "proto3"; |
| 5 |
package api; |
| 6 |
|
| 7 |
option go_package = "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/example/api"; |
| 8 |
|
| 9 |
service HelloService { |
| 10 |
rpc SayHello (HelloRequest) returns (HelloResponse); |
| 11 |
|
| 12 |
rpc SayHelloServerStream (HelloRequest) returns (stream HelloResponse); |
| 13 |
|
| 14 |
rpc SayHelloClientStream (stream HelloRequest) returns (HelloResponse); |
| 15 |
|
| 16 |
rpc SayHelloBidiStream (stream HelloRequest) returns (stream HelloResponse); |
| 17 |
} |
| 18 |
|
| 19 |
message HelloRequest { |
| 20 |
string greeting = 1; |
| 21 |
} |
| 22 |
|
| 23 |
message HelloResponse { |
| 24 |
string reply = 1; |
| 25 |
} |