go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/grpc/internal/svctool/testdata/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  option go_package = "go.chromium.org/luci/grpc/internal/svctool/testdata;test";
     8  
     9  package test;
    10  
    11  import "go.chromium.org/luci/grpc/internal/svctool/testdata/sub/sub.proto";
    12  import "google/protobuf/empty.proto";
    13  
    14  service S1 {
    15    rpc M (M1) returns (M2) {}
    16  }
    17  
    18  service S2 {
    19    rpc Get (Void) returns (M1) {}
    20    rpc Set (M1) returns (Void) {}
    21    rpc Imp(sub.Sub) returns (google.protobuf.Empty) {}
    22  }
    23  
    24  
    25  // The request message containing the user's name.
    26  message M1 {
    27    string name = 1;
    28  }
    29  
    30  // The response message containing the greetings
    31  message M2 {
    32    string message = 1;
    33  }
    34  
    35  message Void {}