|
|
|||
File indexing completed on 2026-09-15 09:11:11
0001 // Protocol Buffers - Google's data interchange format 0002 // Copyright 2008 Google Inc. All rights reserved. 0003 // 0004 // Use of this source code is governed by a BSD-style 0005 // license that can be found in the LICENSE file or at 0006 // https://developers.google.com/open-source/licenses/bsd 0007 0008 #ifndef GOOGLE_PROTOBUF_COMPILER_JAVA_OPTIONS_H__ 0009 #define GOOGLE_PROTOBUF_COMPILER_JAVA_OPTIONS_H__ 0010 0011 #include <string> 0012 0013 #include "google/protobuf/port.h" 0014 0015 namespace google { 0016 namespace protobuf { 0017 namespace compiler { 0018 namespace java { 0019 0020 // Generator options 0021 struct Options { 0022 Options() 0023 : generate_immutable_code(false), 0024 generate_mutable_code(false), 0025 generate_shared_code(false), 0026 enforce_lite(false), 0027 annotate_code(false), 0028 strip_nonfunctional_codegen(false), 0029 jvm_dsl(true), 0030 dsl_use_concrete_types(false) {} 0031 0032 bool generate_immutable_code; 0033 bool generate_mutable_code; 0034 bool generate_shared_code; 0035 // When set, the protoc will generate the current files and all the transitive 0036 // dependencies as lite runtime. 0037 bool enforce_lite; 0038 bool opensource_runtime = google::protobuf::internal::IsOss(); 0039 // If true, we should build .meta files and emit @Generated annotations into 0040 // generated code. 0041 bool annotate_code; 0042 // Name of a file where we will write a list of generated .meta file names, 0043 // one per line. 0044 std::string annotation_list_file; 0045 // Name of a file where we will write a list of generated file names, one 0046 // per line. 0047 std::string output_list_file; 0048 // If true, strip out nonfunctional codegen. 0049 bool strip_nonfunctional_codegen; 0050 0051 // If true, generate JVM-specific DSL code. This defaults to true for 0052 // compatibility with the old behavior. 0053 bool jvm_dsl; 0054 0055 // If true, the generated DSL code will only utilize concrete types, never 0056 // referring to the OrBuilder interfaces. 0057 bool dsl_use_concrete_types; 0058 }; 0059 0060 } // namespace java 0061 } // namespace compiler 0062 } // namespace protobuf 0063 } // namespace google 0064 0065 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_OPTIONS_H__
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|