FieldPolicy class final
Google API Policy Annotation
This message defines a simple API policy annotation that can be used to annotate API request and response message fields with applicable policies. One field may have multiple applicable policies that must all be satisfied before a request can be processed. This policy annotation is used to generate the overall policy that will be used for automatic runtime policy enforcement and documentation generation.
- Inheritance
-
- Object
- ProtoMessage
- FieldPolicy
Constructors
- FieldPolicy({String selector = '', String resourcePermission = '', String resourceType = ''})
- FieldPolicy.fromJson(Object? j)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - resourcePermission → String
-
Specifies the required permission(s) for the resource referred to by the
field. It requires the field contains a valid resource reference, and
the request must pass the permission checks to proceed. For example,
"resourcemanager.projects.get".
final
- resourceType → String
-
Specifies the resource type for the resource referred to by the field.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selector → String
-
Selects one or more request or response message fields to apply this
FieldPolicy.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String