<PackageReference Include="Google.Protobuf" Version="3.34.0" />

Google.Protobuf.Compiler.Version

The version number of protocol compiler.
public const int MajorFieldNumber = 1

Field number for the "major" field.

public const int MinorFieldNumber = 2

Field number for the "minor" field.

public const int PatchFieldNumber = 3

Field number for the "patch" field.

public const int SuffixFieldNumber = 4

Field number for the "suffix" field.

public static MessageDescriptor Descriptor { get; }

public static MessageParser<Version> Parser { get; }

public bool HasMajor { get; }

Gets whether the "major" field is set

public bool HasMinor { get; }

Gets whether the "minor" field is set

public bool HasPatch { get; }

Gets whether the "patch" field is set

public bool HasSuffix { get; }

Gets whether the "suffix" field is set

public int Major { get; set; }

public int Minor { get; set; }

public int Patch { get; set; }

public string Suffix { get; set; }

A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should be empty for mainline stable releases.

public Version()

public Version(Version other)

public int CalculateSize()

public void ClearMajor()

Clears the value of the "major" field

public void ClearMinor()

Clears the value of the "minor" field

public void ClearPatch()

Clears the value of the "patch" field

public void ClearSuffix()

Clears the value of the "suffix" field

public Version Clone()

public bool Equals(Version other)

public void MergeFrom(Version other)

public void MergeFrom(CodedInputStream input)

public void WriteTo(CodedOutputStream output)