AttributeContext class Null safety

This message defines the standard attribute vocabulary for Google APIs.

An attribute is a piece of metadata that describes an activity on a network service. For example, the size of an HTTP request, or the status code of an HTTP response. Each attribute has a type and a name, which is logically defined as a proto message field in AttributeContext. The field type becomes the attribute type, and the field path becomes the attribute name. For example, the attribute source.ip maps to field AttributeContext.source.ip. This message definition is guaranteed not to have any wire breaking change. So you can use it directly for passing attributes across different systems. NOTE: Different system may generate different subset of attributes. Please verify the system specification before relying on an attribute generated a system.


AttributeContext({Api? api, Peer? destination, List<Map<String, Object?>>? extensions, Peer? origin, Request? request, Resource? resource, Response? response, Peer? source})
AttributeContext.fromJson(Map json_)


api Api?
Represents an API operation that is involved to a network activity.
read / write
destination Peer?
The destination of a network activity, such as accepting a TCP connection.
read / write
extensions List<Map<String, Object?>>?
Supports extensions for advanced use cases, such as logs and metrics.
read / write
hashCode int
The hash code for this object.
origin Peer?
The origin of a network activity.
read / write
request Request?
Represents a network request, such as an HTTP request.
read / write
resource Resource?
Represents a target resource that is involved with a network activity.
read / write
response Response?
Represents a network response, such as an HTTP response.
read / write
runtimeType Type
A representation of the runtime type of the object.
source Peer?
The source of a network activity, such as starting a TCP connection.
read / write


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


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