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, kImportClosure, kImportCommonJs, kImportCommonJsStrict,
  kImportBrowser, kImportEs6
}
 
enum  ImportStyle {
  kImportClosure, kImportCommonJs, kImportCommonJsStrict, kImportBrowser,
  kImportEs6, kImportClosure, kImportCommonJs, kImportCommonJsStrict,
  kImportBrowser, kImportEs6
}
 
enum  OutputMode {
  kOneOutputFilePerInputFile, kOneOutputFilePerSCC, kEverythingInOneFile, kOneOutputFilePerInputFile,
  kOneOutputFilePerSCC, kEverythingInOneFile
}
 
enum  OutputMode {
  kOneOutputFilePerInputFile, kOneOutputFilePerSCC, kEverythingInOneFile, kOneOutputFilePerInputFile,
  kOneOutputFilePerSCC, kEverythingInOneFile
}
 

Public Member Functions

 GeneratorOptions ()
 
 GeneratorOptions ()
 
std::string GetFileNameExtension () const
 
std::string GetFileNameExtension () const
 
OutputMode output_mode () const
 
OutputMode output_mode () const
 
bool ParseFromOptions (const std::vector< std::pair< std::string, std::string > > &options, std::string *error)
 
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 bloaty/third_party/protobuf/src/google/protobuf/compiler/js/js_generator.h.

Member Enumeration Documentation

◆ ImportStyle [1/2]

Enumerator
kImportClosure 
kImportCommonJs 
kImportCommonJsStrict 
kImportBrowser 
kImportEs6 
kImportClosure 
kImportCommonJs 
kImportCommonJsStrict 
kImportBrowser 
kImportEs6 

Definition at line 70 of file bloaty/third_party/protobuf/src/google/protobuf/compiler/js/js_generator.h.

◆ ImportStyle [2/2]

Enumerator
kImportClosure 
kImportCommonJs 
kImportCommonJsStrict 
kImportBrowser 
kImportEs6 
kImportClosure 
kImportCommonJs 
kImportCommonJsStrict 
kImportBrowser 
kImportEs6 

Definition at line 70 of file protobuf/src/google/protobuf/compiler/js/js_generator.h.

◆ OutputMode [1/2]

Enumerator
kOneOutputFilePerInputFile 
kOneOutputFilePerSCC 
kEverythingInOneFile 
kOneOutputFilePerInputFile 
kOneOutputFilePerSCC 
kEverythingInOneFile 

Definition at line 99 of file protobuf/src/google/protobuf/compiler/js/js_generator.h.

◆ OutputMode [2/2]

Enumerator
kOneOutputFilePerInputFile 
kOneOutputFilePerSCC 
kEverythingInOneFile 
kOneOutputFilePerInputFile 
kOneOutputFilePerSCC 
kEverythingInOneFile 

Definition at line 100 of file bloaty/third_party/protobuf/src/google/protobuf/compiler/js/js_generator.h.

Constructor & Destructor Documentation

◆ GeneratorOptions() [1/2]

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

◆ GeneratorOptions() [2/2]

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

Member Function Documentation

◆ GetFileNameExtension() [1/2]

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

◆ GetFileNameExtension() [2/2]

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

◆ output_mode() [1/2]

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

◆ output_mode() [2/2]

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

◆ ParseFromOptions() [1/2]

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

◆ ParseFromOptions() [2/2]

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

Member Data Documentation

◆ add_require_for_enums

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

◆ annotate_code

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

◆ binary

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

◆ error_on_name_conflict

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

◆ extension

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

◆ 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

◆ namespace_prefix

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

◆ one_output_file_per_input_file

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

◆ output_dir

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

◆ testonly

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

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:23