Show / Hide Table of Contents

Class ServiceDescriptor

Describes a service type.

Inheritance
System.Object
DescriptorBase
ServiceDescriptor
Implements
IDescriptor
Inherited Members
DescriptorBase.Index
DescriptorBase.FullName
DescriptorBase.File
DescriptorBase.Declaration
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf.Reflection
Assembly: Google.Protobuf.dll
Syntax
public sealed class ServiceDescriptor : DescriptorBase, IDescriptor

Properties

CustomOptions

The (possibly empty) set of custom options for this service.

Declaration
public CustomOptions CustomOptions { get; }
Property Value
Type Description
CustomOptions

Methods

Declaration
public IList<MethodDescriptor> Methods { get; }
Property Value
Type Description
System.Collections.Generic.IList<MethodDescriptor>

An unmodifiable list of methods in this service.

Name

The brief name of the descriptor's target.

Declaration
public override string Name { get; }
Property Value
Type Description
System.String
Overrides
DescriptorBase.Name

Methods

FindMethodByName(String)

Finds a method by name.

Declaration
public MethodDescriptor FindMethodByName(string name)
Parameters
Type Name Description
System.String name

The unqualified name of the method (e.g. "Foo").

Returns
Type Description
MethodDescriptor

The method's decsriptor, or null if not found.

Back to top