Download include/google/protobuf/compiler/csharp/csharp_reflection_class.h from Shenghong/dai_env: direct link, hf CLI and curl.
- Browser
- Download file 1.64 kB
-
https://huggingface.co/Shenghong/dai_env/resolve/main/include/google/protobuf/compiler/csharp/csharp_reflection_class.h
- Command line
-
hf download hf://Shenghong/dai_env/include/google/protobuf/compiler/csharp/csharp_reflection_class.h
-
curl -L -o csharp_reflection_class.h https://huggingface.co/Shenghong/dai_env/resolve/main/include/google/protobuf/compiler/csharp/csharp_reflection_class.h
1.64 kB
| // Protocol Buffers - Google's data interchange format | |
| // Copyright 2008 Google Inc. All rights reserved. | |
| // | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file or at | |
| // https://developers.google.com/open-source/licenses/bsd | |
| namespace google { | |
| namespace protobuf { | |
| namespace compiler { | |
| namespace csharp { | |
| class ReflectionClassGenerator : public SourceGeneratorBase { | |
| public: | |
| ReflectionClassGenerator(const FileDescriptor* file, const Options* options); | |
| ~ReflectionClassGenerator(); | |
| ReflectionClassGenerator(const ReflectionClassGenerator&) = delete; | |
| ReflectionClassGenerator& operator=(const ReflectionClassGenerator&) = delete; | |
| void Generate(io::Printer* printer); | |
| private: | |
| const FileDescriptor* file_; | |
| std::string namespace_; | |
| std::string reflectionClassname_; | |
| std::string extensionClassname_; | |
| void WriteIntroduction(io::Printer* printer); | |
| void WriteDescriptor(io::Printer* printer); | |
| void WriteGeneratedCodeInfo(const Descriptor* descriptor, | |
| io::Printer* printer, | |
| bool last); | |
| }; | |
| } // namespace csharp | |
| } // namespace compiler | |
| } // namespace protobuf | |
| } // namespace google | |