ServiceDescriptor class
A service: its fully-qualified name (package.Service) and its ordered list
of methods. A transport (gRPC / Connect) consumes this to build a client or
dispatch on the server.
Constructors
-
ServiceDescriptor({required String fullName, required List<
MethodDescriptor> methods}) -
const
Properties
- fullName → String
-
The service's fully-qualified name (e.g.
acme.Eliza).final - hashCode → int
-
The hash code for this object.
no setterinherited
-
methods
→ List<
MethodDescriptor> -
The service's methods, in declaration order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
methodByName(
String name) → MethodDescriptor? -
Looks up a method by its short
name, ornullwhen absent. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited