annotations.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. syntax = "proto3";
  2. package grpc.gateway.protoc_gen_openapiv2.options;
  3. option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options";
  4. import "google/protobuf/descriptor.proto";
  5. import "protoc-gen-openapiv2/options/openapiv2.proto";
  6. extend google.protobuf.FileOptions {
  7. // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
  8. //
  9. // All IDs are the same, as assigned. It is okay that they are the same, as they extend
  10. // different descriptor messages.
  11. Swagger openapiv2_swagger = 1042;
  12. }
  13. extend google.protobuf.MethodOptions {
  14. // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
  15. //
  16. // All IDs are the same, as assigned. It is okay that they are the same, as they extend
  17. // different descriptor messages.
  18. Operation openapiv2_operation = 1042;
  19. }
  20. extend google.protobuf.MessageOptions {
  21. // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
  22. //
  23. // All IDs are the same, as assigned. It is okay that they are the same, as they extend
  24. // different descriptor messages.
  25. Schema openapiv2_schema = 1042;
  26. }
  27. extend google.protobuf.ServiceOptions {
  28. // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
  29. //
  30. // All IDs are the same, as assigned. It is okay that they are the same, as they extend
  31. // different descriptor messages.
  32. Tag openapiv2_tag = 1042;
  33. }
  34. extend google.protobuf.FieldOptions {
  35. // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
  36. //
  37. // All IDs are the same, as assigned. It is okay that they are the same, as they extend
  38. // different descriptor messages.
  39. JSONSchema openapiv2_field = 1042;
  40. }