github.com/cloudwego/hertz@v0.9.3/pkg/app/server/binding/testdata/hello.pb.go (about) 1 /* 2 * Copyright 2023 CloudWeGo Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // Code generated by protoc-gen-go. DO NOT EDIT. 18 // versions: 19 // protoc-gen-go v1.30.0 20 // protoc v3.21.12 21 // source: hello.proto 22 23 package testdata 24 25 import ( 26 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 27 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 28 reflect "reflect" 29 sync "sync" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 type HertzReq struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` 45 } 46 47 func (x *HertzReq) Reset() { 48 *x = HertzReq{} 49 if protoimpl.UnsafeEnabled { 50 mi := &file_hello_proto_msgTypes[0] 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 ms.StoreMessageInfo(mi) 53 } 54 } 55 56 func (x *HertzReq) String() string { 57 return protoimpl.X.MessageStringOf(x) 58 } 59 60 func (*HertzReq) ProtoMessage() {} 61 62 func (x *HertzReq) ProtoReflect() protoreflect.Message { 63 mi := &file_hello_proto_msgTypes[0] 64 if protoimpl.UnsafeEnabled && x != nil { 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 if ms.LoadMessageInfo() == nil { 67 ms.StoreMessageInfo(mi) 68 } 69 return ms 70 } 71 return mi.MessageOf(x) 72 } 73 74 // Deprecated: Use HertzReq.ProtoReflect.Descriptor instead. 75 func (*HertzReq) Descriptor() ([]byte, []int) { 76 return file_hello_proto_rawDescGZIP(), []int{0} 77 } 78 79 func (x *HertzReq) GetName() string { 80 if x != nil { 81 return x.Name 82 } 83 return "" 84 } 85 86 var File_hello_proto protoreflect.FileDescriptor 87 88 var file_hello_proto_rawDesc = []byte{ 89 0x0a, 0x0b, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x68, 90 0x65, 0x72, 0x74, 0x7a, 0x22, 0x1e, 0x0a, 0x08, 0x48, 0x65, 0x72, 0x74, 0x7a, 0x52, 0x65, 0x71, 91 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 92 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x68, 0x65, 0x72, 0x74, 0x7a, 0x2f, 0x68, 0x65, 93 0x6c, 0x6c, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 94 } 95 96 var ( 97 file_hello_proto_rawDescOnce sync.Once 98 file_hello_proto_rawDescData = file_hello_proto_rawDesc 99 ) 100 101 func file_hello_proto_rawDescGZIP() []byte { 102 file_hello_proto_rawDescOnce.Do(func() { 103 file_hello_proto_rawDescData = protoimpl.X.CompressGZIP(file_hello_proto_rawDescData) 104 }) 105 return file_hello_proto_rawDescData 106 } 107 108 var file_hello_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 109 var file_hello_proto_goTypes = []interface{}{ 110 (*HertzReq)(nil), // 0: hertz.HertzReq 111 } 112 var file_hello_proto_depIdxs = []int32{ 113 0, // [0:0] is the sub-list for method output_type 114 0, // [0:0] is the sub-list for method input_type 115 0, // [0:0] is the sub-list for extension type_name 116 0, // [0:0] is the sub-list for extension extendee 117 0, // [0:0] is the sub-list for field type_name 118 } 119 120 func init() { file_hello_proto_init() } 121 func file_hello_proto_init() { 122 if File_hello_proto != nil { 123 return 124 } 125 if !protoimpl.UnsafeEnabled { 126 file_hello_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 127 switch v := v.(*HertzReq); i { 128 case 0: 129 return &v.state 130 case 1: 131 return &v.sizeCache 132 case 2: 133 return &v.unknownFields 134 default: 135 return nil 136 } 137 } 138 } 139 type x struct{} 140 out := protoimpl.TypeBuilder{ 141 File: protoimpl.DescBuilder{ 142 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 143 RawDescriptor: file_hello_proto_rawDesc, 144 NumEnums: 0, 145 NumMessages: 1, 146 NumExtensions: 0, 147 NumServices: 0, 148 }, 149 GoTypes: file_hello_proto_goTypes, 150 DependencyIndexes: file_hello_proto_depIdxs, 151 MessageInfos: file_hello_proto_msgTypes, 152 }.Build() 153 File_hello_proto = out.File 154 file_hello_proto_rawDesc = nil 155 file_hello_proto_goTypes = nil 156 file_hello_proto_depIdxs = nil 157 }