syntax = "proto3"; package com.example.grpc; // Request payload message HelloRequest { string name = 1; repeated string hobbies = 2; } message HelloResponse { string greeting = 1; } // Defining a Service, a Service can have multiple RPC operations service GreetingService { rpc greeting(HelloRequest) returns (HelloResponse); rpc streamGreeting(HelloRequest) returns (stream HelloResponse); }