public sealed class ServiceOptions : object, IExtendableMessage<ServiceOptions>, IMessage<ServiceOptions>, IEquatable<ServiceOptions>, IDeepCloneable<ServiceOptions>, IBufferMessage, IMessage
Inheritance
Object >
ServiceOptions
Namespace
Google.Protobuf.Reflection
Assembly
Google.Protobuf.dll
Constructors
ServiceOptions()
ServiceOptions(ServiceOptions)
public ServiceOptions(ServiceOptions other)
Parameter
Fields
DeprecatedFieldNumber
public const int DeprecatedFieldNumber = null
Field number for the "deprecated" field.
Field Value
UninterpretedOptionFieldNumber
public const int UninterpretedOptionFieldNumber = null
Field number for the "uninterpreted_option" field.
Field Value
Properties
Deprecated
public bool Deprecated { get; set; }
Is this service deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the service, or it will be completely ignored; in the very least,
this is a formalization for deprecating services.
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
HasDeprecated
public bool HasDeprecated { get; }
Gets whether the "deprecated" field is set
Property Value
Parser
public static MessageParser<ServiceOptions> Parser { get; }
Property Value
UninterpretedOption
public RepeatedField<UninterpretedOption> UninterpretedOption { get; }
The parser stores options it doesn't recognize here. See above.
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearDeprecated()
public void ClearDeprecated()
Clears the value of the "deprecated" field
ClearExtension<TValue>(Extension<ServiceOptions, TValue>)
public void ClearExtension<TValue>(Extension<ServiceOptions, TValue> extension)
Parameter
Type Parameter
ClearExtension<TValue>(RepeatedExtension<ServiceOptions, TValue>)
public void ClearExtension<TValue>(RepeatedExtension<ServiceOptions, TValue> extension)
Parameter
Type Parameter
Clone()
public ServiceOptions Clone()
Returns
Equals(ServiceOptions)
public bool Equals(ServiceOptions other)
Parameter
Returns
Equals(Object)
public override bool Equals(object other)
Parameter
Returns
GetExtension<TValue>(Extension<ServiceOptions, TValue>)
public TValue GetExtension<TValue>(Extension<ServiceOptions, TValue> extension)
Parameter
Returns
Type Parameter
GetExtension<TValue>(RepeatedExtension<ServiceOptions, TValue>)
public RepeatedField<TValue> GetExtension<TValue>(RepeatedExtension<ServiceOptions, TValue> extension)
Parameter
Returns
Type Parameter
GetHashCode()
public override int GetHashCode()
Returns
GetOrInitializeExtension<TValue>(RepeatedExtension<ServiceOptions, TValue>)
public RepeatedField<TValue> GetOrInitializeExtension<TValue>(RepeatedExtension<ServiceOptions, TValue> extension)
Parameter
Returns
Type Parameter
HasExtension<TValue>(Extension<ServiceOptions, TValue>)
public bool HasExtension<TValue>(Extension<ServiceOptions, TValue> extension)
Parameter
Returns
Type Parameter
public void MergeFrom(CodedInputStream input)
Parameter
MergeFrom(ServiceOptions)
public void MergeFrom(ServiceOptions other)
Parameter
SetExtension<TValue>(Extension<ServiceOptions, TValue>, TValue)
public void SetExtension<TValue>(Extension<ServiceOptions, TValue> extension, TValue value)
Parameters
Type Parameter
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Parameter
Explicit Interface Implementations
IBufferMessage.InternalMergeFrom(ref ParseContext)
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
IBufferMessage.InternalWriteTo(ref WriteContext)
void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
IMessage.Descriptor
MessageDescriptor IMessage.Descriptor { get; }
Returns