Public Types | Public Member Functions | Public Attributes | List of all members
google::protobuf::compiler::js::GeneratorOptions Struct Reference

#include <js_generator.h>

Public Types

enum  ImportStyle {
  kImportClosure, kImportCommonJs, kImportCommonJsStrict, kImportBrowser,
  kImportEs6
}
 
enum  OutputMode { kOneOutputFilePerInputFile, kOneOutputFilePerSCC, kEverythingInOneFile }
 

Public Member Functions

 GeneratorOptions ()
 
std::string GetFileNameExtension () const
 
OutputMode output_mode () const
 
bool ParseFromOptions (const std::vector< std::pair< std::string, std::string > > &options, std::string *error)
 

Public Attributes

bool add_require_for_enums
 
bool annotate_code
 
bool binary
 
bool error_on_name_conflict
 
std::string extension
 
enum google::protobuf::compiler::js::GeneratorOptions::ImportStyle import_style
 
std::string library
 
std::string namespace_prefix
 
bool one_output_file_per_input_file
 
std::string output_dir
 
bool testonly
 

Detailed Description

Definition at line 62 of file js_generator.h.

Member Enumeration Documentation

◆ ImportStyle

Enumerator
kImportClosure 
kImportCommonJs 
kImportCommonJsStrict 
kImportBrowser 
kImportEs6 

Definition at line 70 of file js_generator.h.

◆ OutputMode

Enumerator
kOneOutputFilePerInputFile 
kOneOutputFilePerSCC 
kEverythingInOneFile 

Definition at line 100 of file js_generator.h.

Constructor & Destructor Documentation

◆ GeneratorOptions()

google::protobuf::compiler::js::GeneratorOptions::GeneratorOptions ( )
inline

Definition at line 78 of file js_generator.h.

Member Function Documentation

◆ GetFileNameExtension()

std::string google::protobuf::compiler::js::GeneratorOptions::GetFileNameExtension ( ) const
inline

Definition at line 96 of file js_generator.h.

◆ output_mode()

GeneratorOptions::OutputMode google::protobuf::compiler::js::GeneratorOptions::output_mode ( ) const

Definition at line 3558 of file js_generator.cc.

◆ ParseFromOptions()

bool google::protobuf::compiler::js::GeneratorOptions::ParseFromOptions ( const std::vector< std::pair< std::string, std::string > > &  options,
std::string error 
)

Definition at line 3470 of file js_generator.cc.

Member Data Documentation

◆ add_require_for_enums

bool google::protobuf::compiler::js::GeneratorOptions::add_require_for_enums

Definition at line 116 of file js_generator.h.

◆ annotate_code

bool google::protobuf::compiler::js::GeneratorOptions::annotate_code

Definition at line 133 of file js_generator.h.

◆ binary

bool google::protobuf::compiler::js::GeneratorOptions::binary

Definition at line 68 of file js_generator.h.

◆ error_on_name_conflict

bool google::protobuf::compiler::js::GeneratorOptions::error_on_name_conflict

Definition at line 123 of file js_generator.h.

◆ extension

std::string google::protobuf::compiler::js::GeneratorOptions::extension

Definition at line 125 of file js_generator.h.

◆ import_style

enum google::protobuf::compiler::js::GeneratorOptions::ImportStyle google::protobuf::compiler::js::GeneratorOptions::import_style

◆ library

std::string google::protobuf::compiler::js::GeneratorOptions::library

Definition at line 121 of file js_generator.h.

◆ namespace_prefix

std::string google::protobuf::compiler::js::GeneratorOptions::namespace_prefix

Definition at line 66 of file js_generator.h.

◆ one_output_file_per_input_file

bool google::protobuf::compiler::js::GeneratorOptions::one_output_file_per_input_file

Definition at line 127 of file js_generator.h.

◆ output_dir

std::string google::protobuf::compiler::js::GeneratorOptions::output_dir

Definition at line 64 of file js_generator.h.

◆ testonly

bool google::protobuf::compiler::js::GeneratorOptions::testonly

Definition at line 118 of file js_generator.h.


The documentation for this struct was generated from the following files:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09