github.com/erda-project/erda-infra@v1.0.9/examples/service/protocol/pb/greeter.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.26.0 4 // protoc v3.15.8 5 // source: greeter.proto 6 7 package pb 8 9 import ( 10 reflect "reflect" 11 sync "sync" 12 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 type HelloRequest struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 31 } 32 33 func (x *HelloRequest) Reset() { 34 *x = HelloRequest{} 35 if protoimpl.UnsafeEnabled { 36 mi := &file_greeter_proto_msgTypes[0] 37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 ms.StoreMessageInfo(mi) 39 } 40 } 41 42 func (x *HelloRequest) String() string { 43 return protoimpl.X.MessageStringOf(x) 44 } 45 46 func (*HelloRequest) ProtoMessage() {} 47 48 func (x *HelloRequest) ProtoReflect() protoreflect.Message { 49 mi := &file_greeter_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 60 // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead. 61 func (*HelloRequest) Descriptor() ([]byte, []int) { 62 return file_greeter_proto_rawDescGZIP(), []int{0} 63 } 64 65 func (x *HelloRequest) GetName() string { 66 if x != nil { 67 return x.Name 68 } 69 return "" 70 } 71 72 type HelloResponse struct { 73 state protoimpl.MessageState 74 sizeCache protoimpl.SizeCache 75 unknownFields protoimpl.UnknownFields 76 77 Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` 78 Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 79 } 80 81 func (x *HelloResponse) Reset() { 82 *x = HelloResponse{} 83 if protoimpl.UnsafeEnabled { 84 mi := &file_greeter_proto_msgTypes[1] 85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 86 ms.StoreMessageInfo(mi) 87 } 88 } 89 90 func (x *HelloResponse) String() string { 91 return protoimpl.X.MessageStringOf(x) 92 } 93 94 func (*HelloResponse) ProtoMessage() {} 95 96 func (x *HelloResponse) ProtoReflect() protoreflect.Message { 97 mi := &file_greeter_proto_msgTypes[1] 98 if protoimpl.UnsafeEnabled && x != nil { 99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 100 if ms.LoadMessageInfo() == nil { 101 ms.StoreMessageInfo(mi) 102 } 103 return ms 104 } 105 return mi.MessageOf(x) 106 } 107 108 // Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead. 109 func (*HelloResponse) Descriptor() ([]byte, []int) { 110 return file_greeter_proto_rawDescGZIP(), []int{1} 111 } 112 113 func (x *HelloResponse) GetSuccess() bool { 114 if x != nil { 115 return x.Success 116 } 117 return false 118 } 119 120 func (x *HelloResponse) GetData() string { 121 if x != nil { 122 return x.Data 123 } 124 return "" 125 } 126 127 var File_greeter_proto protoreflect.FileDescriptor 128 129 var file_greeter_proto_rawDesc = []byte{ 130 0x0a, 0x0d, 0x67, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 131 0x12, 0x65, 0x72, 0x64, 0x61, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2e, 0x65, 0x78, 0x61, 0x6d, 132 0x70, 0x6c, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 133 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 134 0x6f, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 135 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 136 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3d, 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 137 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 138 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 139 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 140 0x64, 0x61, 0x74, 0x61, 0x32, 0x7e, 0x0a, 0x0e, 0x47, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x53, 141 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 142 0x6c, 0x6f, 0x12, 0x20, 0x2e, 0x65, 0x72, 0x64, 0x61, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2e, 143 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 144 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x65, 0x72, 0x64, 0x61, 0x2e, 0x69, 0x6e, 0x66, 0x72, 145 0x61, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 146 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 147 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x6e, 148 0x61, 0x6d, 0x65, 0x7d, 0x42, 0x41, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 149 0x6f, 0x6d, 0x2f, 0x65, 0x72, 0x64, 0x61, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 150 0x65, 0x72, 0x64, 0x61, 0x2d, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 151 0x6c, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 152 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 153 } 154 155 var ( 156 file_greeter_proto_rawDescOnce sync.Once 157 file_greeter_proto_rawDescData = file_greeter_proto_rawDesc 158 ) 159 160 func file_greeter_proto_rawDescGZIP() []byte { 161 file_greeter_proto_rawDescOnce.Do(func() { 162 file_greeter_proto_rawDescData = protoimpl.X.CompressGZIP(file_greeter_proto_rawDescData) 163 }) 164 return file_greeter_proto_rawDescData 165 } 166 167 var file_greeter_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 168 var file_greeter_proto_goTypes = []interface{}{ 169 (*HelloRequest)(nil), // 0: erda.infra.example.HelloRequest 170 (*HelloResponse)(nil), // 1: erda.infra.example.HelloResponse 171 } 172 var file_greeter_proto_depIdxs = []int32{ 173 0, // 0: erda.infra.example.GreeterService.SayHello:input_type -> erda.infra.example.HelloRequest 174 1, // 1: erda.infra.example.GreeterService.SayHello:output_type -> erda.infra.example.HelloResponse 175 1, // [1:2] is the sub-list for method output_type 176 0, // [0:1] is the sub-list for method input_type 177 0, // [0:0] is the sub-list for extension type_name 178 0, // [0:0] is the sub-list for extension extendee 179 0, // [0:0] is the sub-list for field type_name 180 } 181 182 func init() { file_greeter_proto_init() } 183 func file_greeter_proto_init() { 184 if File_greeter_proto != nil { 185 return 186 } 187 if !protoimpl.UnsafeEnabled { 188 file_greeter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 189 switch v := v.(*HelloRequest); i { 190 case 0: 191 return &v.state 192 case 1: 193 return &v.sizeCache 194 case 2: 195 return &v.unknownFields 196 default: 197 return nil 198 } 199 } 200 file_greeter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 201 switch v := v.(*HelloResponse); i { 202 case 0: 203 return &v.state 204 case 1: 205 return &v.sizeCache 206 case 2: 207 return &v.unknownFields 208 default: 209 return nil 210 } 211 } 212 } 213 type x struct{} 214 out := protoimpl.TypeBuilder{ 215 File: protoimpl.DescBuilder{ 216 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 217 RawDescriptor: file_greeter_proto_rawDesc, 218 NumEnums: 0, 219 NumMessages: 2, 220 NumExtensions: 0, 221 NumServices: 1, 222 }, 223 GoTypes: file_greeter_proto_goTypes, 224 DependencyIndexes: file_greeter_proto_depIdxs, 225 MessageInfos: file_greeter_proto_msgTypes, 226 }.Build() 227 File_greeter_proto = out.File 228 file_greeter_proto_rawDesc = nil 229 file_greeter_proto_goTypes = nil 230 file_greeter_proto_depIdxs = nil 231 }