MethodDescriptor class
A single RPC method: its name, its fully-qualified name
(package.Service.Method), the message type names of its input and output,
its streaming kind, and its idempotency level.
Input/output are referenced by message type name (stripped FQN, the same key the descriptor registry uses) so a method descriptor stays independent of any particular message representation.
Constructors
- MethodDescriptor({required String name, required String fullName, required String inputDescriptor, required String outputDescriptor, required MethodKind kind, IdempotencyLevel idempotency = IdempotencyLevel.idempotencyUnknown})
-
const
Properties
- fullName → String
-
The method's fully-qualified name (e.g.
acme.Eliza.Say).final - hashCode → int
-
The hash code for this object.
no setterinherited
- idempotency → IdempotencyLevel
-
The method's idempotency contract.
final
- inputDescriptor → String
-
Fully-qualified type name of the request message (stripped FQN).
final
- kind → MethodKind
-
How the method streams.
final
- name → String
-
The method's short name (e.g.
Say).final - outputDescriptor → String
-
Fully-qualified type name of the response message (stripped FQN).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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