Google Cloud Datastream V1 Client - Class ValidationMessage (1.3.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
NameDescription
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
TypeDescription
string

setMessage

The result of the validation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLevel

Message severity level (warning or error).

Returns
TypeDescription
int

setLevel

Message severity level (warning or error).

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMetadata

Additional metadata related to the result.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setMetadata

Additional metadata related to the result.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getCode

A custom code identifying this specific message.

Returns
TypeDescription
string

setCode

A custom code identifying this specific message.

Parameter
NameDescription
var string
Returns
TypeDescription
$this