nacos.proto 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright 1999-2020 Alibaba Group Holding Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. syntax = "proto3";
  17. import "any.proto";
  18. option java_multiple_files = true;
  19. option java_package = "com.alibaba.nacos.api.grpc.auto";
  20. option php_namespace = 'Hyperf\\Nacos\\Protobuf';
  21. option php_metadata_namespace = 'Hyperf\\Nacos\\Protobuf\\GPBMetadata';
  22. message Metadata {
  23. string type = 3;
  24. string clientIp = 8;
  25. map<string, string> headers = 7;
  26. }
  27. message Payload {
  28. Metadata metadata = 2;
  29. google.protobuf.Any body = 3;
  30. }
  31. service RequestStream {
  32. // build a streamRequest
  33. rpc requestStream (Payload) returns (stream Payload) {
  34. }
  35. }
  36. service Request {
  37. // Sends a commonRequest
  38. rpc request (Payload) returns (Payload) {
  39. }
  40. }
  41. service BiRequestStream {
  42. // Sends a commonRequest
  43. rpc requestBiStream (stream Payload) returns (stream Payload) {
  44. }
  45. }