request constructs a `google.rpc.context.AttributeContext.Request` message.
(auth *rpcpb.AttributeContext_Auth, t time.Time)
| 503 | |
| 504 | // request constructs a `google.rpc.context.AttributeContext.Request` message. |
| 505 | func request(auth *rpcpb.AttributeContext_Auth, t time.Time) map[string]any { |
| 506 | req := &rpcpb.AttributeContext_Request{ |
| 507 | Auth: auth, |
| 508 | Time: &tpb.Timestamp{Seconds: t.Unix()}, |
| 509 | } |
| 510 | return map[string]any{"request": req} |
| 511 | } |
| 512 | |
| 513 | // valueToJSON converts the CEL type to a protobuf JSON representation and |
| 514 | // marshals the result to a string. |