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

Google.Protobuf.Reflection.EnumOptions

public const int AllowAliasFieldNumber = 2

Field number for the "allow_alias" field.

public const int DeprecatedFieldNumber = 3

Field number for the "deprecated" field.

Field number for the "deprecated_legacy_json_field_conflicts" field.

public const int FeaturesFieldNumber = 7

Field number for the "features" field.

public const int UninterpretedOptionFieldNumber = 999

Field number for the "uninterpreted_option" field.

public static MessageDescriptor Descriptor { get; }

public static MessageParser<EnumOptions> Parser { get; }

public bool AllowAlias { get; set; }

Set this option to true to allow mapping different tag names to the same value.

public bool Deprecated { get; set; }

Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.

public bool DeprecatedLegacyJsonFieldConflicts { get; set; }

Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. TODO Remove this legacy behavior once downstream teams have had time to migrate.

public FeatureSet Features { get; set; }

Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.

public bool HasAllowAlias { get; }

Gets whether the "allow_alias" field is set

public bool HasDeprecated { get; }

Gets whether the "deprecated" field is set

Gets whether the "deprecated_legacy_json_field_conflicts" field is set

The parser stores options it doesn't recognize here. See above.

public EnumOptions()

public EnumOptions(EnumOptions other)

public int CalculateSize()

public void ClearAllowAlias()

Clears the value of the "allow_alias" field

public void ClearDeprecated()

Clears the value of the "deprecated" field

Clears the value of the "deprecated_legacy_json_field_conflicts" field

public void ClearExtension<TValue>(Extension<EnumOptions, TValue> extension)

public void ClearExtension<TValue>(RepeatedExtension<EnumOptions, TValue> extension)

public EnumOptions Clone()

public bool Equals(EnumOptions other)

public TValue GetExtension<TValue>(Extension<EnumOptions, TValue> extension)

public RepeatedField<TValue> GetExtension<TValue>(RepeatedExtension<EnumOptions, TValue> extension)

public RepeatedField<TValue> GetOrInitializeExtension<TValue>(RepeatedExtension<EnumOptions, TValue> extension)

public bool HasExtension<TValue>(Extension<EnumOptions, TValue> extension)

public void MergeFrom(EnumOptions other)

public void MergeFrom(CodedInputStream input)

public void SetExtension<TValue>(Extension<EnumOptions, TValue> extension, TValue value)

public void WriteTo(CodedOutputStream output)