helloworld.proto 552 字节
Newer Older
S
shenhongxi 已提交
1 2 3 4 5 6 7 8 9 10
syntax = "proto3";

option java_multiple_files = true;
option java_package = "com.itlong.whatsmars.grpc.service";
option java_outer_classname = "HelloWorldProto";
option objc_class_prefix = "HLW";

package helloworld;

// The greeting service definition.
S
shenhongxi 已提交
11
service HelloService {
S
shenhongxi 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24
  // Sends a greeting
  rpc sayHello (HelloRequest) returns (HelloResponse) {}
}

// The request message containing the user's name.
message HelloRequest {
  string name = 1;
}

// The response message containing the greetings
message HelloResponse {
  string message = 1;
}