apiconfig.pb.go 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.15.2
  5. // source: internal/descriptor/apiconfig/apiconfig.proto
  6. package apiconfig
  7. import (
  8. annotations "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // GrpcAPIService represents a stripped down version of google.api.Service .
  21. // Compare to https://github.com/googleapis/googleapis/blob/master/google/api/service.proto
  22. // The original imports 23 other protobuf files we are not interested in. If a significant
  23. // subset (>50%) of these start being reproduced in this file we should swap to using the
  24. // full generated version instead.
  25. //
  26. // For the purposes of the gateway generator we only consider a small subset of all
  27. // available features google supports in their service descriptions. Thanks to backwards
  28. // compatibility guarantees by protobuf it is safe for us to remove the other fields.
  29. type GrpcAPIService struct {
  30. state protoimpl.MessageState
  31. sizeCache protoimpl.SizeCache
  32. unknownFields protoimpl.UnknownFields
  33. // Http Rule.
  34. Http *annotations.Http `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
  35. }
  36. func (x *GrpcAPIService) Reset() {
  37. *x = GrpcAPIService{}
  38. if protoimpl.UnsafeEnabled {
  39. mi := &file_internal_descriptor_apiconfig_apiconfig_proto_msgTypes[0]
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. ms.StoreMessageInfo(mi)
  42. }
  43. }
  44. func (x *GrpcAPIService) String() string {
  45. return protoimpl.X.MessageStringOf(x)
  46. }
  47. func (*GrpcAPIService) ProtoMessage() {}
  48. func (x *GrpcAPIService) ProtoReflect() protoreflect.Message {
  49. mi := &file_internal_descriptor_apiconfig_apiconfig_proto_msgTypes[0]
  50. if protoimpl.UnsafeEnabled && x != nil {
  51. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  52. if ms.LoadMessageInfo() == nil {
  53. ms.StoreMessageInfo(mi)
  54. }
  55. return ms
  56. }
  57. return mi.MessageOf(x)
  58. }
  59. // Deprecated: Use GrpcAPIService.ProtoReflect.Descriptor instead.
  60. func (*GrpcAPIService) Descriptor() ([]byte, []int) {
  61. return file_internal_descriptor_apiconfig_apiconfig_proto_rawDescGZIP(), []int{0}
  62. }
  63. func (x *GrpcAPIService) GetHttp() *annotations.Http {
  64. if x != nil {
  65. return x.Http
  66. }
  67. return nil
  68. }
  69. var File_internal_descriptor_apiconfig_apiconfig_proto protoreflect.FileDescriptor
  70. var file_internal_descriptor_apiconfig_apiconfig_proto_rawDesc = []byte{
  71. 0x0a, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72,
  72. 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f,
  73. 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  74. 0x2a, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x69, 0x6e,
  75. 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f,
  76. 0x72, 0x2e, 0x61, 0x70, 0x69, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x15, 0x67, 0x6f, 0x6f,
  77. 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f,
  78. 0x74, 0x6f, 0x22, 0x36, 0x0a, 0x0e, 0x47, 0x72, 0x70, 0x63, 0x41, 0x50, 0x49, 0x53, 0x65, 0x72,
  79. 0x76, 0x69, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x01, 0x20, 0x01,
  80. 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  81. 0x48, 0x74, 0x74, 0x70, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69,
  82. 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x65, 0x63,
  83. 0x6f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x67, 0x61, 0x74,
  84. 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
  85. 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x63,
  86. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  87. }
  88. var (
  89. file_internal_descriptor_apiconfig_apiconfig_proto_rawDescOnce sync.Once
  90. file_internal_descriptor_apiconfig_apiconfig_proto_rawDescData = file_internal_descriptor_apiconfig_apiconfig_proto_rawDesc
  91. )
  92. func file_internal_descriptor_apiconfig_apiconfig_proto_rawDescGZIP() []byte {
  93. file_internal_descriptor_apiconfig_apiconfig_proto_rawDescOnce.Do(func() {
  94. file_internal_descriptor_apiconfig_apiconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_descriptor_apiconfig_apiconfig_proto_rawDescData)
  95. })
  96. return file_internal_descriptor_apiconfig_apiconfig_proto_rawDescData
  97. }
  98. var file_internal_descriptor_apiconfig_apiconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  99. var file_internal_descriptor_apiconfig_apiconfig_proto_goTypes = []interface{}{
  100. (*GrpcAPIService)(nil), // 0: grpc.gateway.internal.descriptor.apiconfig.GrpcAPIService
  101. (*annotations.Http)(nil), // 1: google.api.Http
  102. }
  103. var file_internal_descriptor_apiconfig_apiconfig_proto_depIdxs = []int32{
  104. 1, // 0: grpc.gateway.internal.descriptor.apiconfig.GrpcAPIService.http:type_name -> google.api.Http
  105. 1, // [1:1] is the sub-list for method output_type
  106. 1, // [1:1] is the sub-list for method input_type
  107. 1, // [1:1] is the sub-list for extension type_name
  108. 1, // [1:1] is the sub-list for extension extendee
  109. 0, // [0:1] is the sub-list for field type_name
  110. }
  111. func init() { file_internal_descriptor_apiconfig_apiconfig_proto_init() }
  112. func file_internal_descriptor_apiconfig_apiconfig_proto_init() {
  113. if File_internal_descriptor_apiconfig_apiconfig_proto != nil {
  114. return
  115. }
  116. if !protoimpl.UnsafeEnabled {
  117. file_internal_descriptor_apiconfig_apiconfig_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  118. switch v := v.(*GrpcAPIService); i {
  119. case 0:
  120. return &v.state
  121. case 1:
  122. return &v.sizeCache
  123. case 2:
  124. return &v.unknownFields
  125. default:
  126. return nil
  127. }
  128. }
  129. }
  130. type x struct{}
  131. out := protoimpl.TypeBuilder{
  132. File: protoimpl.DescBuilder{
  133. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  134. RawDescriptor: file_internal_descriptor_apiconfig_apiconfig_proto_rawDesc,
  135. NumEnums: 0,
  136. NumMessages: 1,
  137. NumExtensions: 0,
  138. NumServices: 0,
  139. },
  140. GoTypes: file_internal_descriptor_apiconfig_apiconfig_proto_goTypes,
  141. DependencyIndexes: file_internal_descriptor_apiconfig_apiconfig_proto_depIdxs,
  142. MessageInfos: file_internal_descriptor_apiconfig_apiconfig_proto_msgTypes,
  143. }.Build()
  144. File_internal_descriptor_apiconfig_apiconfig_proto = out.File
  145. file_internal_descriptor_apiconfig_apiconfig_proto_rawDesc = nil
  146. file_internal_descriptor_apiconfig_apiconfig_proto_goTypes = nil
  147. file_internal_descriptor_apiconfig_apiconfig_proto_depIdxs = nil
  148. }