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

Google.Protobuf.Reflection.MethodOptions

public static class Types

Container for nested types declared in the MethodOptions message type.

public const int DeprecatedFieldNumber = 33

Field number for the "deprecated" field.

public const int FeaturesFieldNumber = 35

Field number for the "features" field.

public const int IdempotencyLevelFieldNumber = 34

Field number for the "idempotency_level" field.

public const int UninterpretedOptionFieldNumber = 999

Field number for the "uninterpreted_option" field.

public static MessageDescriptor Descriptor { get; }

public static MessageParser<MethodOptions> Parser { get; }

public bool Deprecated { get; set; }

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

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 HasDeprecated { get; }

Gets whether the "deprecated" field is set

public bool HasIdempotencyLevel { get; }

Gets whether the "idempotency_level" field is set

public IdempotencyLevel IdempotencyLevel { get; set; }

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

public MethodOptions()

public int CalculateSize()

public void ClearDeprecated()

Clears the value of the "deprecated" field

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

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

public void ClearIdempotencyLevel()

Clears the value of the "idempotency_level" field

public bool Equals(MethodOptions other)

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

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

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

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

public void MergeFrom(MethodOptions other)

public void MergeFrom(CodedInputStream input)

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

public void WriteTo(CodedOutputStream output)