Show / Hide Table of Contents

Class EnumOptions

Inheritance
System.Object
EnumOptions
Implements
IExtendableMessage<EnumOptions>
IMessage<EnumOptions>
IMessage
System.IEquatable<EnumOptions>
IDeepCloneable<EnumOptions>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf.Reflection
Assembly: Google.Protobuf.dll
Syntax
public sealed class EnumOptions : IExtendableMessage<EnumOptions>, IMessage<EnumOptions>, IMessage, IEquatable<EnumOptions>, IDeepCloneable<EnumOptions>

Constructors

EnumOptions()

Declaration
public EnumOptions()

EnumOptions(EnumOptions)

Declaration
public EnumOptions(EnumOptions other)
Parameters
Type Name Description
EnumOptions other

Fields

AllowAliasFieldNumber

Field number for the "allow_alias" field.

Declaration
public const int AllowAliasFieldNumber = 2
Field Value
Type Description
System.Int32

DeprecatedFieldNumber

Field number for the "deprecated" field.

Declaration
public const int DeprecatedFieldNumber = 3
Field Value
Type Description
System.Int32

UninterpretedOptionFieldNumber

Field number for the "uninterpreted_option" field.

Declaration
public const int UninterpretedOptionFieldNumber = 999
Field Value
Type Description
System.Int32

Properties

AllowAlias

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

Declaration
public bool AllowAlias { get; set; }
Property Value
Type Description
System.Boolean

Deprecated

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.

Declaration
public bool Deprecated { get; set; }
Property Value
Type Description
System.Boolean

Descriptor

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

HasAllowAlias

Gets whether the "allow_alias" field is set

Declaration
public bool HasAllowAlias { get; }
Property Value
Type Description
System.Boolean

HasDeprecated

Gets whether the "deprecated" field is set

Declaration
public bool HasDeprecated { get; }
Property Value
Type Description
System.Boolean

Parser

Declaration
public static MessageParser<EnumOptions> Parser { get; }
Property Value
Type Description
MessageParser<EnumOptions>

UninterpretedOption

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

Declaration
public RepeatedField<UninterpretedOption> UninterpretedOption { get; }
Property Value
Type Description
RepeatedField<UninterpretedOption>

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

ClearAllowAlias()

Clears the value of the "allow_alias" field

Declaration
public void ClearAllowAlias()

ClearDeprecated()

Clears the value of the "deprecated" field

Declaration
public void ClearDeprecated()

ClearExtension<TValue>(Extension<EnumOptions, TValue>)

Declaration
public void ClearExtension<TValue>(Extension<EnumOptions, TValue> extension)
Parameters
Type Name Description
Extension<EnumOptions, TValue> extension
Type Parameters
Name Description
TValue
Implements
IExtendableMessage<T>.ClearExtension<TValue>(Extension<T, TValue>)

ClearExtension<TValue>(RepeatedExtension<EnumOptions, TValue>)

Declaration
public void ClearExtension<TValue>(RepeatedExtension<EnumOptions, TValue> extension)
Parameters
Type Name Description
RepeatedExtension<EnumOptions, TValue> extension
Type Parameters
Name Description
TValue
Implements
IExtendableMessage<T>.ClearExtension<TValue>(RepeatedExtension<T, TValue>)

Clone()

Declaration
public EnumOptions Clone()
Returns
Type Description
EnumOptions
Implements
IDeepCloneable<T>.Clone()

Equals(EnumOptions)

Declaration
public bool Equals(EnumOptions other)
Parameters
Type Name Description
EnumOptions other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

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

Declaration
public TValue GetExtension<TValue>(Extension<EnumOptions, TValue> extension)
Parameters
Type Name Description
Extension<EnumOptions, TValue> extension
Returns
Type Description
TValue
Type Parameters
Name Description
TValue
Implements
IExtendableMessage<T>.GetExtension<TValue>(Extension<T, TValue>)

GetExtension<TValue>(RepeatedExtension<EnumOptions, TValue>)

Declaration
public RepeatedField<TValue> GetExtension<TValue>(RepeatedExtension<EnumOptions, TValue> extension)
Parameters
Type Name Description
RepeatedExtension<EnumOptions, TValue> extension
Returns
Type Description
RepeatedField<TValue>
Type Parameters
Name Description
TValue
Implements
IExtendableMessage<T>.GetExtension<TValue>(RepeatedExtension<T, TValue>)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

GetOrInitializeExtension<TValue>(RepeatedExtension<EnumOptions, TValue>)

Declaration
public RepeatedField<TValue> GetOrInitializeExtension<TValue>(RepeatedExtension<EnumOptions, TValue> extension)
Parameters
Type Name Description
RepeatedExtension<EnumOptions, TValue> extension
Returns
Type Description
RepeatedField<TValue>
Type Parameters
Name Description
TValue
Implements
IExtendableMessage<T>.GetOrInitializeExtension<TValue>(RepeatedExtension<T, TValue>)

HasExtension<TValue>(Extension<EnumOptions, TValue>)

Declaration
public bool HasExtension<TValue>(Extension<EnumOptions, TValue> extension)
Parameters
Type Name Description
Extension<EnumOptions, TValue> extension
Returns
Type Description
System.Boolean
Type Parameters
Name Description
TValue
Implements
IExtendableMessage<T>.HasExtension<TValue>(Extension<T, TValue>)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

MergeFrom(EnumOptions)

Declaration
public void MergeFrom(EnumOptions other)
Parameters
Type Name Description
EnumOptions other
Implements
IMessage<T>.MergeFrom(T)

SetExtension<TValue>(Extension<EnumOptions, TValue>, TValue)

Declaration
public void SetExtension<TValue>(Extension<EnumOptions, TValue> extension, TValue value)
Parameters
Type Name Description
Extension<EnumOptions, TValue> extension
TValue value
Type Parameters
Name Description
TValue
Implements
IExtendableMessage<T>.SetExtension<TValue>(Extension<T, TValue>, TValue)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor

Extension Methods

MessageExtensions.MergeFrom(IMessage, Byte[])
MessageExtensions.MergeFrom(IMessage, Byte[], Int32, Int32)
MessageExtensions.MergeFrom(IMessage, ByteString)
MessageExtensions.MergeFrom(IMessage, Stream)
MessageExtensions.MergeDelimitedFrom(IMessage, Stream)
MessageExtensions.ToByteArray(IMessage)
MessageExtensions.WriteTo(IMessage, Stream)
MessageExtensions.WriteDelimitedTo(IMessage, Stream)
MessageExtensions.ToByteString(IMessage)
MessageExtensions.IsInitialized(IMessage)
Back to top