go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/grpc/discovery/internal/testservices/helloworld.proto (about) 1 // Copyright 2016 The LUCI Authors. All rights reserved. 2 // Use of this source code is governed under the Apache License, Version 2.0 3 // that can be found in the LICENSE file. 4 5 syntax = "proto3"; 6 7 package testservices; 8 9 option go_package = "go.chromium.org/luci/grpc/discovery/internal/testservices"; 10 11 // The greeting service definition. 12 service Greeter { 13 // Sends a greeting 14 rpc SayHello (HelloRequest) returns (HelloReply) {} 15 } 16 17 // The request message containing the user's name. 18 message HelloRequest { 19 string name = 1; 20 } 21 22 // The response message containing the greetings 23 message HelloReply { 24 string message = 1; 25 } 26 27 service Calc { 28 rpc Multiply (MultiplyRequest) returns (MultiplyResponse) {} 29 } 30 31 message MultiplyRequest { 32 int32 x = 1; 33 int32 y = 2; 34 } 35 36 message MultiplyResponse { 37 int32 z = 1; 38 }