MethodPolicy constructor

const MethodPolicy({
  1. Input<List<FieldPolicy>>? requestPolicies,
  2. 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 .

Implementation

const MethodPolicy({
  this.requestPolicies,
  this.selector,
});