Class MethodOptions
Inheritance
System.Object
MethodOptions
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Protobuf.dll
Syntax
public sealed class MethodOptions : IExtendableMessage<MethodOptions>, IMessage<MethodOptions>, IMessage, IEquatable<MethodOptions>, IDeepCloneable<MethodOptions>
Constructors
MethodOptions()
Declaration
MethodOptions(MethodOptions)
Declaration
public MethodOptions(MethodOptions other)
Parameters
Fields
DeprecatedFieldNumber
Field number for the "deprecated" field.
Declaration
public const int DeprecatedFieldNumber = 33
Field Value
Type |
Description |
System.Int32 |
|
IdempotencyLevelFieldNumber
Field number for the "idempotency_level" field.
Declaration
public const int IdempotencyLevelFieldNumber = 34
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
Deprecated
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.
Declaration
public bool Deprecated { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
HasDeprecated
Gets whether the "deprecated" field is set
Declaration
public bool HasDeprecated { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasIdempotencyLevel
Gets whether the "idempotency_level" field is set
Declaration
public bool HasIdempotencyLevel { get; }
Property Value
Type |
Description |
System.Boolean |
|
IdempotencyLevel
Declaration
public MethodOptions.Types.IdempotencyLevel IdempotencyLevel { get; set; }
Property Value
Parser
Declaration
public static MessageParser<MethodOptions> Parser { get; }
Property Value
UninterpretedOption
The parser stores options it doesn't recognize here. See above.
Declaration
public RepeatedField<UninterpretedOption> UninterpretedOption { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
ClearDeprecated()
Clears the value of the "deprecated" field
Declaration
public void ClearDeprecated()
ClearExtension<TValue>(Extension<MethodOptions, TValue>)
Declaration
public void ClearExtension<TValue>(Extension<MethodOptions, TValue> extension)
Parameters
Type Parameters
Implements
ClearExtension<TValue>(RepeatedExtension<MethodOptions, TValue>)
Declaration
public void ClearExtension<TValue>(RepeatedExtension<MethodOptions, TValue> extension)
Parameters
Type Parameters
Implements
ClearIdempotencyLevel()
Clears the value of the "idempotency_level" field
Declaration
public void ClearIdempotencyLevel()
Clone()
Declaration
public MethodOptions Clone()
Returns
Implements
Equals(MethodOptions)
Declaration
public bool Equals(MethodOptions other)
Parameters
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<MethodOptions, TValue>)
Declaration
public TValue GetExtension<TValue>(Extension<MethodOptions, TValue> extension)
Parameters
Returns
Type Parameters
Implements
GetExtension<TValue>(RepeatedExtension<MethodOptions, TValue>)
Declaration
public RepeatedField<TValue> GetExtension<TValue>(RepeatedExtension<MethodOptions, TValue> extension)
Parameters
Returns
Type Parameters
Implements
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
GetOrInitializeExtension<TValue>(RepeatedExtension<MethodOptions, TValue>)
Declaration
public RepeatedField<TValue> GetOrInitializeExtension<TValue>(RepeatedExtension<MethodOptions, TValue> extension)
Parameters
Returns
Type Parameters
Implements
HasExtension<TValue>(Extension<MethodOptions, TValue>)
Declaration
public bool HasExtension<TValue>(Extension<MethodOptions, TValue> extension)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(MethodOptions)
Declaration
public void MergeFrom(MethodOptions other)
Parameters
Implements
SetExtension<TValue>(Extension<MethodOptions, TValue>, TValue)
Declaration
public void SetExtension<TValue>(Extension<MethodOptions, TValue> extension, TValue value)
Parameters
Type Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements
Extension Methods