Send feedback
Class FeatureSetDefaults (3.27.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
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)
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; }
Descriptor
public static MessageDescriptor Descriptor { get; }
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; }
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.
Equals(FeatureSetDefaults)
public bool Equals(FeatureSetDefaults other)
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
public void MergeFrom(CodedInputStream input)
Merges the data from the specified coded input stream with the current message.
Remarks
MergeFrom(FeatureSetDefaults)
public void MergeFrom(FeatureSetDefaults other)
Merges the given message into this one.
Remarks
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]