Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class ViolationInfo.
Provides information about the Policy violation info for this request.
Generated from protobuf message google.cloud.audit.ViolationInfo
Namespace
Google \ Cloud \ Audit
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ constraint
string
Optional. Constraint name
↳ error_message
string
Optional. Error message that policy is indicating.
↳ checked_value
string
Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types
↳ policy_type
int
Optional. Indicates the type of the policy.
getConstraint
Optional. Constraint name
Returns
Type
Description
string
setConstraint
Optional. Constraint name
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getErrorMessage
Optional. Error message that policy is indicating.
Returns
Type
Description
string
setErrorMessage
Optional. Error message that policy is indicating.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCheckedValue
Optional. Value that is being checked for the policy.
This could be in encrypted form (if pii sensitive).
This field will only be emitted in LIST_POLICY types
Returns
Type
Description
string
setCheckedValue
Optional. Value that is being checked for the policy.
This could be in encrypted form (if pii sensitive).
This field will only be emitted in LIST_POLICY types
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Common Protos for Google Cloud APIs Client - Class ViolationInfo (0.8.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.2 (latest)](/php/docs/reference/cloud-common-protos/latest/Audit.ViolationInfo)\n- [0.8.1](/php/docs/reference/cloud-common-protos/0.8.1/Audit.ViolationInfo)\n- [0.7.0](/php/docs/reference/cloud-common-protos/0.7.0/Audit.ViolationInfo)\n- [0.6.0](/php/docs/reference/cloud-common-protos/0.6.0/Audit.ViolationInfo)\n- [0.5.2](/php/docs/reference/cloud-common-protos/0.5.2/Audit.ViolationInfo)\n- [0.4.2](/php/docs/reference/cloud-common-protos/0.4.2/Audit.ViolationInfo)\n- [0.3.8](/php/docs/reference/cloud-common-protos/0.3.8/Audit.ViolationInfo) \nReference documentation and code samples for the Common Protos for Google Cloud APIs Client class ViolationInfo.\n\nProvides information about the Policy violation info for this request.\n\nGenerated from protobuf message `google.cloud.audit.ViolationInfo`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Audit\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getConstraint\n\nOptional. Constraint name\n\n### setConstraint\n\nOptional. Constraint name\n\n### getErrorMessage\n\nOptional. Error message that policy is indicating.\n\n### setErrorMessage\n\nOptional. Error message that policy is indicating.\n\n### getCheckedValue\n\nOptional. Value that is being checked for the policy.\n\nThis could be in encrypted form (if pii sensitive).\nThis field will only be emitted in LIST_POLICY types\n\n### setCheckedValue\n\nOptional. Value that is being checked for the policy.\n\nThis could be in encrypted form (if pii sensitive).\nThis field will only be emitted in LIST_POLICY types\n\n### getPolicyType\n\nOptional. Indicates the type of the policy.\n\n### setPolicyType\n\nOptional. Indicates the type of the policy."]]