Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 10:11:59

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   }
0030 
0031   bool generate_immutable_code;
0032   bool generate_mutable_code;
0033   bool generate_shared_code;
0034   // When set, the protoc will generate the current files and all the transitive
0035   // dependencies as lite runtime.
0036   bool enforce_lite;
0037   bool opensource_runtime = google::protobuf::internal::IsOss();
0038   // If true, we should build .meta files and emit @Generated annotations into
0039   // generated code.
0040   bool annotate_code;
0041   // Name of a file where we will write a list of generated .meta file names,
0042   // one per line.
0043   std::string annotation_list_file;
0044   // Name of a file where we will write a list of generated file names, one
0045   // per line.
0046   std::string output_list_file;
0047   // If true, strip out nonfunctional codegen.
0048   bool strip_nonfunctional_codegen;
0049 };
0050 
0051 }  // namespace java
0052 }  // namespace compiler
0053 }  // namespace protobuf
0054 }  // namespace google
0055 
0056 #endif  // GOOGLE_PROTOBUF_COMPILER_JAVA_OPTIONS_H__