An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
↳ scrubbed_response_item_count
int
Number of scrubbed response items.
↳ target_resource
string
Audit resource name which is scrubbed.
getAuditLog
Serialized audit log.
Returns
Type
Description
string
setAuditLog
Serialized audit log.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getScrubbedRequest
An API request message that is scrubbed based on the method annotation.
This field should only be filled if audit_log field is present.
Service Control will use this to assemble a complete log for Cloud Audit
Logs and Google internal audit logs.
An API request message that is scrubbed based on the method annotation.
This field should only be filled if audit_log field is present.
Service Control will use this to assemble a complete log for Cloud Audit
Logs and Google internal audit logs.
An API response message that is scrubbed based on the method annotation.
This field should only be filled if audit_log field is present.
Service Control will use this to assemble a complete log for Cloud Audit
Logs and Google internal audit logs.
An API response message that is scrubbed based on the method annotation.
This field should only be filled if audit_log field is present.
Service Control will use this to assemble a complete log for Cloud Audit
Logs and Google internal audit logs.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google API Common Protos Client - Class AuditContext (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Rpc.Context.AuditContext)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Rpc.Context.AuditContext)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Rpc.Context.AuditContext)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Rpc.Context.AuditContext)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Rpc.Context.AuditContext)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Rpc.Context.AuditContext) \nReference documentation and code samples for the Google API Common Protos Client class AuditContext.\n\n`AuditContext` provides information that is needed for audit logging.\n\nGenerated from protobuf message `google.rpc.context.AuditContext`\n\nNamespace\n---------\n\nGoogle \\\\ Rpc \\\\ Context\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAuditLog\n\nSerialized audit log.\n\n### setAuditLog\n\nSerialized audit log.\n\n### getScrubbedRequest\n\nAn API request message that is scrubbed based on the method annotation.\n\nThis field should only be filled if audit_log field is present.\nService Control will use this to assemble a complete log for Cloud Audit\nLogs and Google internal audit logs.\n\n### hasScrubbedRequest\n\n### clearScrubbedRequest\n\n### setScrubbedRequest\n\nAn API request message that is scrubbed based on the method annotation.\n\nThis field should only be filled if audit_log field is present.\nService Control will use this to assemble a complete log for Cloud Audit\nLogs and Google internal audit logs.\n\n### getScrubbedResponse\n\nAn API response message that is scrubbed based on the method annotation.\n\nThis field should only be filled if audit_log field is present.\nService Control will use this to assemble a complete log for Cloud Audit\nLogs and Google internal audit logs.\n\n### hasScrubbedResponse\n\n### clearScrubbedResponse\n\n### setScrubbedResponse\n\nAn API response message that is scrubbed based on the method annotation.\n\nThis field should only be filled if audit_log field is present.\nService Control will use this to assemble a complete log for Cloud Audit\nLogs and Google internal audit logs.\n\n### getScrubbedResponseItemCount\n\nNumber of scrubbed response items.\n\n### setScrubbedResponseItemCount\n\nNumber of scrubbed response items.\n\n### getTargetResource\n\nAudit resource name which is scrubbed.\n\n### setTargetResource\n\nAudit resource name which is scrubbed."]]