Class ServiceOptions

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()

public ServiceOptions()

ServiceOptions(ServiceOptions)

public ServiceOptions(ServiceOptions other)
Parameter
TypeNameDescription
ServiceOptionsother

Fields

DeprecatedFieldNumber

public const int DeprecatedFieldNumber = null

Field number for the "deprecated" field.

Field Value
TypeDescription
Int32

UninterpretedOptionFieldNumber

public const int UninterpretedOptionFieldNumber = null

Field number for the "uninterpreted_option" field.

Field Value
TypeDescription
Int32

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
TypeDescription
Boolean

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

HasDeprecated

public bool HasDeprecated { get; }

Gets whether the "deprecated" field is set

Property Value
TypeDescription
Boolean

Parser

public static MessageParser<ServiceOptions> Parser { get; }
Property Value
TypeDescription
MessageParser<ServiceOptions>

UninterpretedOption

public RepeatedField<UninterpretedOption> UninterpretedOption { get; }

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

Property Value
TypeDescription
RepeatedField<UninterpretedOption>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

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
TypeNameDescription
Extension<ServiceOptions, TValue>extension
Type Parameter
NameDescription
TValue

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

public void ClearExtension<TValue>(RepeatedExtension<ServiceOptions, TValue> extension)
Parameter
TypeNameDescription
RepeatedExtension<ServiceOptions, TValue>extension
Type Parameter
NameDescription
TValue

Clone()

public ServiceOptions Clone()
Returns
TypeDescription
ServiceOptions

Equals(ServiceOptions)

public bool Equals(ServiceOptions other)
Parameter
TypeNameDescription
ServiceOptionsother
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
TypeNameDescription
Objectother
Returns
TypeDescription
Boolean

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

public TValue GetExtension<TValue>(Extension<ServiceOptions, TValue> extension)
Parameter
TypeNameDescription
Extension<ServiceOptions, TValue>extension
Returns
TypeDescription
TValue
Type Parameter
NameDescription
TValue

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

public RepeatedField<TValue> GetExtension<TValue>(RepeatedExtension<ServiceOptions, TValue> extension)
Parameter
TypeNameDescription
RepeatedExtension<ServiceOptions, TValue>extension
Returns
TypeDescription
RepeatedField<TValue>
Type Parameter
NameDescription
TValue

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

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

public RepeatedField<TValue> GetOrInitializeExtension<TValue>(RepeatedExtension<ServiceOptions, TValue> extension)
Parameter
TypeNameDescription
RepeatedExtension<ServiceOptions, TValue>extension
Returns
TypeDescription
RepeatedField<TValue>
Type Parameter
NameDescription
TValue

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

public bool HasExtension<TValue>(Extension<ServiceOptions, TValue> extension)
Parameter
TypeNameDescription
Extension<ServiceOptions, TValue>extension
Returns
TypeDescription
Boolean
Type Parameter
NameDescription
TValue

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
TypeNameDescription
CodedInputStreaminput

MergeFrom(ServiceOptions)

public void MergeFrom(ServiceOptions other)
Parameter
TypeNameDescription
ServiceOptionsother

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

public void SetExtension<TValue>(Extension<ServiceOptions, TValue> extension, TValue value)
Parameters
TypeNameDescription
Extension<ServiceOptions, TValue>extension
TValuevalue
Type Parameter
NameDescription
TValue

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
TypeNameDescription
CodedOutputStreamoutput

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
TypeNameDescription
ParseContextinput

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
TypeNameDescription
WriteContextoutput

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor

Implements

IEquatable<>