backstage

Форк
0
/
invalid-language-example-api.yaml 
48 строк · 1.4 Кб
1
apiVersion: backstage.io/v1alpha1
2
kind: API
3
metadata:
4
  name: hello-world
5
  description: Hello World example for gRPC
6
spec:
7
  type: my-invalid-language
8
  lifecycle: deprecated
9
  owner: team-c
10
  definition: |
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

25
    syntax = "proto3";
26

27
    option java_multiple_files = true;
28
    option java_package = "io.grpc.examples.helloworld";
29
    option java_outer_classname = "HelloWorldProto";
30
    option objc_class_prefix = "HLW";
31

32
    package helloworld;
33

34
    // The greeting service definition.
35
    service Greeter {
36
      // Sends a greeting
37
      rpc SayHello (HelloRequest) returns (HelloReply) {}
38
    }
39

40
    // The request message containing the user's name.
41
    message HelloRequest {
42
      string name = 1;
43
    }
44

45
    // The response message containing the greetings
46
    message HelloReply {
47
      string message = 1;
48
    }
49

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.