aboutsummaryrefslogtreecommitdiff
path: root/protos
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2011-10-05 18:04:12 -0500
committerrogerk <devnull@localhost>2011-10-05 18:04:12 -0500
commit752d1a374c15593b1aa1a4e97f73bdbacc71de45 (patch)
tree3d7210e8475b982405113372bf815053af5ccbd5 /protos
parent4a6ed749dc71868fbff1c00e1a18498d73905fdf (diff)
downloadprotobuf-752d1a374c15593b1aa1a4e97f73bdbacc71de45.tar.gz
protobuf-752d1a374c15593b1aa1a4e97f73bdbacc71de45.tar.bz2
protobuf-752d1a374c15593b1aa1a4e97f73bdbacc71de45.zip
Added option generate_private_ctor to disable private ctor generation
Diffstat (limited to 'protos')
-rw-r--r--protos/google/protobuf/csharp_options.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/protos/google/protobuf/csharp_options.proto b/protos/google/protobuf/csharp_options.proto
index 9ebcfa6b..4718dbef 100644
--- a/protos/google/protobuf/csharp_options.proto
+++ b/protos/google/protobuf/csharp_options.proto
@@ -41,6 +41,9 @@ message CSharpFileOptions {
// Generate messages/builders with the [Serializable] attribute
optional bool add_serializable = 9 [default = false];
+
+ // Generates a private ctor for Message types
+ optional bool generate_private_ctor = 10 [default = true];
// The extension that should be appended to the umbrella_classname when creating files.
optional string file_extension = 221 [default = ".cs"];