Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class SetFindingStateRequest.
Request message for updating a finding's state.
Generated from protobuf message google.cloud.securitycenter.v1.SetFindingStateRequest
Namespace
Google \ Cloud \ SecurityCenter \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The relative resource name of the finding. Example: organizations/{organization_id}/sources/{source_id}/findings/{finding_id}, folders/{folder_id}/sources/{source_id}/findings/{finding_id}, projects/{project_id}/sources/{source_id}/findings/{finding_id}.
Required. The time at which the updated state takes effect.
getName
Required. The relative resource
name
of the finding. Example:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id},
folders/{folder_id}/sources/{source_id}/findings/{finding_id},
projects/{project_id}/sources/{source_id}/findings/{finding_id}.
Returns
Type
Description
string
setName
Required. The relative resource
name
of the finding. Example:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id},
folders/{folder_id}/sources/{source_id}/findings/{finding_id},
projects/{project_id}/sources/{source_id}/findings/{finding_id}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getState
Required. The desired State of the finding.
Returns
Type
Description
int
Enum of type State.
setState
Required. The desired State of the finding.
Parameter
Name
Description
var
int
Enum of type State.
Returns
Type
Description
$this
getStartTime
Required. The time at which the updated state takes effect.
Required. The relative resource
name
of the finding. Example:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id},
folders/{folder_id}/sources/{source_id}/findings/{finding_id},
projects/{project_id}/sources/{source_id}/findings/{finding_id}. Please see
SecurityCenterClient::findingName() for help formatting this field.
state
int
Required. The desired State of the finding.
For allowed values, use constants defined on Finding\State
[[["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-09 UTC."],[],[],null,["# Google Cloud Security Command Center V1 Client - Class SetFindingStateRequest (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V1.SetFindingStateRequest)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V1.SetFindingStateRequest)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V1.SetFindingStateRequest)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V1.SetFindingStateRequest)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V1.SetFindingStateRequest)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V1.SetFindingStateRequest)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V1.SetFindingStateRequest)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V1.SetFindingStateRequest)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V1.SetFindingStateRequest)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V1.SetFindingStateRequest)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V1.SetFindingStateRequest)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V1.SetFindingStateRequest)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V1.SetFindingStateRequest)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V1.SetFindingStateRequest)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V1.SetFindingStateRequest)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V1.SetFindingStateRequest)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V1.SetFindingStateRequest)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V1.SetFindingStateRequest) \nReference documentation and code samples for the Google Cloud Security Command Center V1 Client class SetFindingStateRequest.\n\nRequest message for updating a finding's state.\n\nGenerated from protobuf message `google.cloud.securitycenter.v1.SetFindingStateRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The [relative resource\nname](https://cloud.google.com/apis/design/resource_names#relative_resource_name)\nof the finding. Example:\n`organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`,\n`folders/{folder_id}/sources/{source_id}/findings/{finding_id}`,\n`projects/{project_id}/sources/{source_id}/findings/{finding_id}`.\n\n### setName\n\nRequired. The [relative resource\nname](https://cloud.google.com/apis/design/resource_names#relative_resource_name)\nof the finding. Example:\n`organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`,\n`folders/{folder_id}/sources/{source_id}/findings/{finding_id}`,\n`projects/{project_id}/sources/{source_id}/findings/{finding_id}`.\n\n### getState\n\nRequired. The desired State of the finding.\n\n### setState\n\nRequired. The desired State of the finding.\n\n### getStartTime\n\nRequired. The time at which the updated state takes effect.\n\n### hasStartTime\n\n### clearStartTime\n\n### setStartTime\n\nRequired. The time at which the updated state takes effect.\n\n### static::build"]]