All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin-example-chatserver.0.1.1.source-code.chat.proto Maven / Gradle / Ivy

There is a newer version: 0.1.4
Show newest version
syntax = "proto3";

package io.rouz.grpc.examples.chat;

import "google/protobuf/timestamp.proto";
import "google/protobuf/empty.proto";

option java_multiple_files = true;
option java_package = "io.rouz.grpc.examples.chat";


service ChatService {
    rpc Chat (stream ChatMessage) returns (stream ChatMessageFromService);
    rpc GetNames (google.protobuf.Empty) returns (ChatRoom);
}

message ChatRoom {
    repeated string names = 1;
}

message ChatMessage {
    string from = 1;
    string message = 2;
}

message ChatMessageFromService {
    google.protobuf.Timestamp timestamp = 1;
    ChatMessage message = 2;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy