Class FeatureSetDefaults (3.27.1)

public sealed class FeatureSetDefaults : IMessage<FeatureSetDefaults>, IEquatable<FeatureSetDefaults>, IDeepCloneable<FeatureSetDefaults>, IBufferMessage, IMessage

A compiled specification for the defaults of a set of features. These messages are generated from FeatureSet extensions and can be used to seed feature resolution. The resolution with this object becomes a simple search for the closest matching edition, followed by proto merges.

Inheritance

object > FeatureSetDefaults

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

FeatureSetDefaults()

public FeatureSetDefaults()

FeatureSetDefaults(FeatureSetDefaults)

public FeatureSetDefaults(FeatureSetDefaults other)
Parameter
Name Description
other FeatureSetDefaults

Fields

DefaultsFieldNumber

public const int DefaultsFieldNumber = 1

Field number for the "defaults" field.

Field Value
Type Description
int

MaximumEditionFieldNumber

public const int MaximumEditionFieldNumber = 5

Field number for the "maximum_edition" field.

Field Value
Type Description
int

MinimumEditionFieldNumber

public const int MinimumEditionFieldNumber = 4

Field number for the "minimum_edition" field.

Field Value
Type Description
int

Properties

Defaults

public RepeatedField<FeatureSetDefaults.Types.FeatureSetEditionDefault> Defaults { get; }
Property Value
Type Description
RepeatedFieldFeatureSetDefaultsTypesFeatureSetEditionDefault

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

HasMaximumEdition

public bool HasMaximumEdition { get; }

Gets whether the "maximum_edition" field is set

Property Value
Type Description
bool

HasMinimumEdition

public bool HasMinimumEdition { get; }

Gets whether the "minimum_edition" field is set

Property Value
Type Description
bool

MaximumEdition

public Edition MaximumEdition { get; set; }

The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.

Property Value
Type Description
Edition

MinimumEdition

public Edition MinimumEdition { get; set; }

The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.

Property Value
Type Description
Edition

Parser

public static MessageParser<FeatureSetDefaults> Parser { get; }
Property Value
Type Description
MessageParserFeatureSetDefaults

Methods

CalculateSize()

public int CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

Returns
Type Description
int

The number of bytes required to write this message to a coded output stream.

ClearMaximumEdition()

public void ClearMaximumEdition()

Clears the value of the "maximum_edition" field

ClearMinimumEdition()

public void ClearMinimumEdition()

Clears the value of the "minimum_edition" field

Clone()

public FeatureSetDefaults Clone()

Creates a deep clone of this object.

Returns
Type Description
FeatureSetDefaults

A deep clone of this object.

Equals(FeatureSetDefaults)

public bool Equals(FeatureSetDefaults other)
Parameter
Name Description
other FeatureSetDefaults
Returns
Type Description
bool

Equals(object)

public override bool Equals(object other)
Parameter
Name Description
other object
Returns
Type Description
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
Type Description
int
Overrides

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)

Merges the data from the specified coded input stream with the current message.

Parameter
Name Description
input CodedInputStream
Remarks

See the user guide for precise merge semantics.

MergeFrom(FeatureSetDefaults)

public void MergeFrom(FeatureSetDefaults other)

Merges the given message into this one.

Parameter
Name Description
other FeatureSetDefaults
Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()
Returns
Type Description
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)

Writes the data to the given coded output stream.

Parameter
Name Description
output CodedOutputStream

Coded output stream to write the data to. Must not be null.

Extension Methods