apiconfig.proto 916 B

123456789101112131415161718192021
  1. syntax = "proto3";
  2. package grpc.gateway.internal.descriptor.apiconfig;
  3. option go_package = "github.com/go-kratos/grpc-gateway/v2/internal/descriptor/apiconfig";
  4. import "google/api/http.proto";
  5. // GrpcAPIService represents a stripped down version of google.api.Service .
  6. // Compare to https://github.com/googleapis/googleapis/blob/master/google/api/service.proto
  7. // The original imports 23 other protobuf files we are not interested in. If a significant
  8. // subset (>50%) of these start being reproduced in this file we should swap to using the
  9. // full generated version instead.
  10. //
  11. // For the purposes of the gateway generator we only consider a small subset of all
  12. // available features google supports in their service descriptions. Thanks to backwards
  13. // compatibility guarantees by protobuf it is safe for us to remove the other fields.
  14. message GrpcAPIService {
  15. // Http Rule.
  16. google.api.Http http = 1;
  17. }