<PackageReference Include="Google.Protobuf" Version="3.35.0-rc2" />

Google.Protobuf.Compiler.CodeGeneratorResponse

The plugin writes an encoded CodeGeneratorResponse to stdout.
public static class Types

Container for nested types declared in the CodeGeneratorResponse message type.

public const int ErrorFieldNumber = 1

Field number for the "error" field.

public const int FileFieldNumber = 15

Field number for the "file" field.

public const int MaximumEditionFieldNumber = 4

Field number for the "maximum_edition" field.

public const int MinimumEditionFieldNumber = 3

Field number for the "minimum_edition" field.

public const int SupportedFeaturesFieldNumber = 2

Field number for the "supported_features" field.

public static MessageDescriptor Descriptor { get; }

public static MessageParser<CodeGeneratorResponse> Parser { get; }

public string Error { get; set; }

Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.

public RepeatedField<File> File { get; }

public bool HasError { get; }

Gets whether the "error" field is set

public bool HasMaximumEdition { get; }

Gets whether the "maximum_edition" field is set

public bool HasMinimumEdition { get; }

Gets whether the "minimum_edition" field is set

public bool HasSupportedFeatures { get; }

Gets whether the "supported_features" field is set

public int MaximumEdition { get; set; }

The maximum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, *not* the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.

public int MinimumEdition { get; set; }

The minimum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, *not* the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.

public ulong SupportedFeatures { get; set; }

A bitmask of supported features that the code generator supports. This is a bitwise "or" of values from the Feature enum.

public int CalculateSize()

public void ClearError()

Clears the value of the "error" field

public void ClearMaximumEdition()

Clears the value of the "maximum_edition" field

public void ClearMinimumEdition()

Clears the value of the "minimum_edition" field

public void ClearSupportedFeatures()

Clears the value of the "supported_features" field

public bool Equals(CodeGeneratorResponse other)

public void MergeFrom(CodeGeneratorResponse other)

public void MergeFrom(CodedInputStream input)

public void WriteTo(CodedOutputStream output)