aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/descriptor.proto
diff options
context:
space:
mode:
authorJan Tattermusch <jtattermusch@google.com>2015-03-16 19:07:16 -0700
committerJan Tattermusch <jtattermusch@google.com>2015-03-26 15:16:21 -0700
commit685ae36ca2dbb455b440997f75cca3e88085a23f (patch)
tree88116b86a714de02c3a3d67bedc1c57bf010b5c7 /src/google/protobuf/descriptor.proto
parent813d6d652d8091e9365bfbd01efb5f2ee8bdfbce (diff)
downloadprotobuf-685ae36ca2dbb455b440997f75cca3e88085a23f.tar.gz
protobuf-685ae36ca2dbb455b440997f75cca3e88085a23f.tar.bz2
protobuf-685ae36ca2dbb455b440997f75cca3e88085a23f.zip
Rewrote C# protogen to C++ (initial version)
Diffstat (limited to 'src/google/protobuf/descriptor.proto')
-rw-r--r--src/google/protobuf/descriptor.proto52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/google/protobuf/descriptor.proto b/src/google/protobuf/descriptor.proto
index 367b16e5..d3f7fae9 100644
--- a/src/google/protobuf/descriptor.proto
+++ b/src/google/protobuf/descriptor.proto
@@ -351,6 +351,58 @@ message FileOptions {
// generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
+ // Namespace for generated classes; defaults to the package.
+ optional string csharp_namespace = 37;
+
+ // Name of the "umbrella" class used for metadata about all
+ // the messages within this file. Default is based on the name
+ // of the file.
+ optional string csharp_umbrella_classname = 38;
+
+ // Whether classes should be public (true) or internal (false)
+ optional bool csharp_public_classes = 39 [default = true];
+
+ // Whether to generate a single file for everything within the
+ // .proto file (false), or one file per message (true).
+ // This option is not currently honored; please log a feature
+ // request if you really want it.
+ optional bool csharp_multiple_files = 40;
+
+ // Whether to nest messages within a single umbrella class (true)
+ // or create the umbrella class as a peer, with messages as
+ // top-level classes in the namespace (false)
+ optional bool csharp_nest_classes = 41;
+
+ // Generate appropriate support for Code Contracts
+ // (Ongoing; support should improve over time)
+ optional bool csharp_code_contracts = 42;
+
+ // Create subdirectories for namespaces, e.g. namespace "Foo.Bar"
+ // would generate files within [output directory]/Foo/Bar
+ optional bool csharp_expand_namespace_directories = 43;
+
+ // Generate attributes indicating non-CLS-compliance
+ optional bool csharp_cls_compliance = 44 [default = true];
+
+ // Generate messages/builders with the [Serializable] attribute
+ optional bool csharp_add_serializable = 45 [default = false];
+
+ // Generates a private ctor for Message types
+ optional bool csharp_generate_private_ctor = 46 [default = true];
+
+ // The extension that should be appended to the umbrella_classname when creating files.
+ optional string csharp_file_extension = 47 [default = ".cs"];
+
+ // A nested namespace for the umbrella class. Helpful for name collisions caused by
+ // umbrella_classname conflicting with an existing type. This will be automatically
+ // set to 'Proto' if a collision is detected with types being generated. This value
+ // is ignored when nest_classes == true
+ optional string csharp_umbrella_namespace = 48;
+
+ // Used to add the System.Runtime.CompilerServices.CompilerGeneratedAttribute and
+ // System.CodeDom.Compiler.GeneratedCodeAttribute attributes to generated code.
+ optional bool csharp_generated_code_attributes = 49 [default = false];
+
// The parser stores options it doesn't recognize here. See above.
repeated UninterpretedOption uninterpreted_option = 999;