No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

55 líneas
1.3 KiB

  1. // Copyright 2017 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // IntStore is a service for testing the rpcreplay package.
  15. // It is a simple key-value store for integers.
  16. syntax = "proto3";
  17. package intstore;
  18. service IntStore {
  19. rpc Set(Item) returns (SetResponse) {}
  20. rpc Get(GetRequest) returns (Item) {}
  21. // A server-to-client streaming RPC.
  22. rpc ListItems(ListItemsRequest) returns (stream Item) {}
  23. // A client-to-server streaming RPC.
  24. rpc SetStream(stream Item) returns (Summary) {}
  25. // A Bidirectional streaming RPC.
  26. rpc StreamChat(stream Item) returns (stream Item) {}
  27. }
  28. message Item {
  29. string name = 1;
  30. int32 value = 2;
  31. }
  32. message SetResponse {
  33. int32 prev_value = 1;
  34. }
  35. message GetRequest {
  36. string name = 1;
  37. }
  38. message Summary {
  39. int32 count = 1;
  40. }
  41. message ListItemsRequest {}