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