go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/grpc/prpc/helloworld_test.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 prpc;
     8  
     9  option go_package = "go.chromium.org/luci/grpc/prpc";
    10  
    11  import "google/protobuf/field_mask.proto";
    12  
    13  // The greeting service definition.
    14  service Greeter {
    15    // Sends a greeting
    16    rpc SayHello (HelloRequest) returns (HelloReply) {}
    17  }
    18  
    19  // The request message containing the user's name.
    20  message HelloRequest {
    21    string name = 1;
    22    google.protobuf.FieldMask fields = 2;
    23  }
    24  
    25  // The response message containing the greetings
    26  message HelloReply {
    27    string message = 1;
    28  }
    29  
    30  service Calc {
    31    rpc Multiply (MultiplyRequest) returns (MultiplyResponse) {}
    32  }
    33  
    34  message MultiplyRequest {
    35    int32 x = 1;
    36    int32 y = 2;
    37  }
    38  
    39  message MultiplyResponse {
    40    int32 z = 1;
    41  }