attributes property

  1. @TagNumber.new(9)
PbList<KeyValue> get attributes

A collection of key/value pairs. Note, global attributes like server name can be set using the resource API. Examples of attributes:

"/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
"/http/server_latency": 300
"example.com/myattribute": true
"example.com/score": 10.239

Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.

Implementation

@$pb.TagNumber(9)
$pb.PbList<$1.KeyValue> get attributes => $_getList(8);