Google Cloud Security Center Management V1 Client - Class CustomModuleValidationError (1.1.1)

Reference documentation and code samples for the Google Cloud Security Center Management V1 Client class CustomModuleValidationError.

An error encountered while validating the uploaded configuration of an Event Threat Detection custom module.

Generated from protobuf message google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse.CustomModuleValidationError

Namespace

Google \ Cloud \ SecurityCenterManagement \ V1 \ ValidateEventThreatDetectionCustomModuleResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ description string

A human-readable description of the error.

↳ field_path string

The path, in RFC 6901: JSON Pointer format, to the field that failed validation. Omitted if no specific field is affected.

↳ start Position

The initial position of the error in the uploaded text version of the module. Omitted if no specific position applies, or if the position could not be computed.

↳ end Position

The end position of the error in the uploaded text version of the module. Omitted if no specific position applies, or if the position could not be computed.

getDescription

A human-readable description of the error.

Returns
Type Description
string

setDescription

A human-readable description of the error.

Parameter
Name Description
var string
Returns
Type Description
$this

getFieldPath

The path, in RFC 6901: JSON Pointer format, to the field that failed validation. Omitted if no specific field is affected.

Returns
Type Description
string

setFieldPath

The path, in RFC 6901: JSON Pointer format, to the field that failed validation. Omitted if no specific field is affected.

Parameter
Name Description
var string
Returns
Type Description
$this

getStart

The initial position of the error in the uploaded text version of the module. Omitted if no specific position applies, or if the position could not be computed.

Returns
Type Description
Position|null

hasStart

clearStart

setStart

The initial position of the error in the uploaded text version of the module. Omitted if no specific position applies, or if the position could not be computed.

Parameter
Name Description
var Position
Returns
Type Description
$this

getEnd

The end position of the error in the uploaded text version of the module.

Omitted if no specific position applies, or if the position could not be computed.

Returns
Type Description
Position|null

hasEnd

clearEnd

setEnd

The end position of the error in the uploaded text version of the module.

Omitted if no specific position applies, or if the position could not be computed.

Parameter
Name Description
var Position
Returns
Type Description
$this