MethodPolicy class

Defines policies applying to an RPC method.

Constructors

MethodPolicy({Input<List<FieldPolicy>>? requestPolicies, Input<String>? selector})
Creates a new MethodPolicy. requestPolicies Policies that are applicable to the request message. selector Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
const
MethodPolicy.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
requestPolicies → Input<List<FieldPolicy>>?
Policies that are applicable to the request message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selector → Input<String>?
Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited