aboutsummaryrefslogtreecommitdiff
path: root/protos/google/protobuf/csharp_options.proto
blob: b58a549172d14ff7674960c44256ba98d4c0ed34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Extra options for C# generator

import "google/protobuf/descriptor.proto";

package google.protobuf;

message CSharpFileOptions {
  optional string namespace = 1;
  optional string umbrella_classname = 2;
  optional bool public_classes = 3 [default = true];
  optional bool multiple_files = 4;
  optional bool nest_classes = 5;
  optional bool code_contracts = 6;
}

extend FileOptions {
  optional CSharpFileOptions csharp_file_options = 1000;
}

extend FieldOptions {
  optional CSharpFieldOptions csharp_field_options = 1000;
}

message CSharpFieldOptions {
  // Provides the ability to override the name of the property
  // generated for this field. This is applied to all properties
  // and methods to do with this field, including HasFoo, FooCount,
  // FooList etc.
  optional string property_name = 1;
}