<ProjectSchemaDefinitions xmlns="http://schemas.microsoft.com/build/2009/properties">
  <Rule Name="Protobuf"
        DisplayName="File Properties"
        PageTemplate="generic"
        Description="File Properties"
        OverrideMode="Extend">
    <Rule.DataSource>
      <DataSource Persistence="ProjectFile" Label="Configuration" ItemType="Protobuf"
                  HasConfigurationCondition="false" SourceOfDefaultValue="AfterContext" />
    </Rule.DataSource>

    <Rule.Categories>
      <Category Name="gRPC" DisplayName="gRPC" />
    </Rule.Categories>

    <EnumProperty Name="GrpcServices" DisplayName="gRPC Stub Classes"
                  Category="gRPC" Default="Both"
                  Description="Generate gRPC server and client stub classes.">
      <EnumValue Name="Both" DisplayName="Client and Server" IsDefault="true" />
      <EnumValue Name="Client" DisplayName="Client only" />
      <EnumValue Name="Server" DisplayName="Server only" />
      <EnumValue Name="None" DisplayName="Do not generate" />
      <EnumProperty.DataSource>
        <DataSource ItemType="Protobuf" SourceOfDefaultValue="AfterContext"
                    PersistenceStyle="Attribute" />
      </EnumProperty.DataSource>
    </EnumProperty>

  </Rule>
</ProjectSchemaDefinitions>
