Stubs

Module

stubs/wellknowntypes

The Protobuf well-known types (google/protobuf/*.proto), from Google's protobuf releases.

OfficialPublic

Message in pb

CSharpFeatures

pb.CSharpFeatures

Fields

FieldTypeNumberDescription
nullable_reference_typesoptionalbool1

Whether the generated files should have nullable reference type annotations. When enabled, the generated C# code includes #nullable enable annotations and annotates message-typed properties and certain parameters with ?.

  • option retention = RETENTION_RUNTIME;
  • option targets = [TARGET_TYPE_FIELD, TARGET_TYPE_MESSAGE, TARGET_TYPE_FILE];
  • option edition_defaults = [{ value: "false" edition: EDITION_LEGACY }];
  • option feature_support = { edition_introduced: EDITION_2026 };

Used by

Defined in google/protobuf/c_sharp_features.proto