backstage
1apiVersion: backstage.io/v1alpha12kind: API3metadata:4name: hello-world5description: Hello World example for gRPC6spec:7type: my-invalid-language8lifecycle: deprecated9owner: team-c10definition: |11// Copyright 2015 gRPC authors.
12//
13// Licensed under the Apache License, Version 2.0 (the "License");
14// you may not use this file except in compliance with the License.
15// You may obtain a copy of the License at
16//
17// http://www.apache.org/licenses/LICENSE-2.0
18//
19// Unless required by applicable law or agreed to in writing, software
20// distributed under the License is distributed on an "AS IS" BASIS,
21// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22// See the License for the specific language governing permissions and
23// limitations under the License.
24
25syntax = "proto3";
26
27option java_multiple_files = true;
28option java_package = "io.grpc.examples.helloworld";
29option java_outer_classname = "HelloWorldProto";
30option objc_class_prefix = "HLW";
31
32package helloworld;
33
34// The greeting service definition.
35service Greeter {36// Sends a greeting
37rpc SayHello (HelloRequest) returns (HelloReply) {}38}39
40// The request message containing the user's name.
41message HelloRequest {42string name = 1;
43}44
45// The response message containing the greetings
46message HelloReply {47string message = 1;
48}49