Google Cloud Datastream V1 Client - Class ValidationMessage (2.0.0)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class ValidationMessage.

Represent user-facing validation result message.

Generated from protobuf message google.cloud.datastream.v1.ValidationMessage

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ message string

The result of the validation.

↳ level int

Message severity level (warning or error).

↳ metadata array|Google\Protobuf\Internal\MapField

Additional metadata related to the result.

↳ code string

A custom code identifying this specific message.

getMessage

The result of the validation.

Returns
Type Description
string

setMessage

The result of the validation.

Parameter
Name Description
var string
Returns
Type Description
$this

getLevel

Message severity level (warning or error).

Returns
Type Description
int

setLevel

Message severity level (warning or error).

Parameter
Name Description
var int
Returns
Type Description
$this

getMetadata

Additional metadata related to the result.

Returns
Type Description
Google\Protobuf\Internal\MapField

setMetadata

Additional metadata related to the result.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getCode

A custom code identifying this specific message.

Returns
Type Description
string

setCode

A custom code identifying this specific message.

Parameter
Name Description
var string
Returns
Type Description
$this