path_item_object.prototext 665 B

1234567891011121314151617181920212223242526272829303132
  1. file_to_generate: "your/service/v1/your_service.proto"
  2. proto_file: {
  3. name: "your/service/v1/your_service.proto"
  4. package: "your.service.v1"
  5. message_type: {
  6. name: "StringMessage"
  7. field: {
  8. name: "value"
  9. number: 1
  10. label: LABEL_OPTIONAL
  11. type: TYPE_STRING
  12. json_name: "value"
  13. }
  14. }
  15. service: {
  16. name: "YourService"
  17. method: {
  18. name: "Echo"
  19. input_type: ".your.service.v1.StringMessage"
  20. output_type: ".your.service.v1.StringMessage"
  21. options: {
  22. [google.api.http]: {
  23. post: "/api/echo"
  24. }
  25. }
  26. }
  27. }
  28. options: {
  29. go_package: "github.com/yourorg/yourprotos/gen/go/your/service/v1"
  30. }
  31. syntax: "proto3"
  32. }