Google Cloud Network Connectivity V1 Client - Class Warnings (1.5.5)

Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Warnings.

Informational warning message.

Generated from protobuf message google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings

Namespace

Google \ Cloud \ NetworkConnectivity \ V1 \ PolicyBasedRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ code int

Output only. A warning code, if applicable.

↳ data array|Google\Protobuf\Internal\MapField

Output only. Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.

↳ warning_message string

Output only. A human-readable description of the warning code.

getCode

Output only. A warning code, if applicable.

Returns
Type Description
int

setCode

Output only. A warning code, if applicable.

Parameter
Name Description
var int
Returns
Type Description
$this

getData

Output only. Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.

Returns
Type Description
Google\Protobuf\Internal\MapField

setData

Output only. Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.

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

getWarningMessage

Output only. A human-readable description of the warning code.

Returns
Type Description
string

setWarningMessage

Output only. A human-readable description of the warning code.

Parameter
Name Description
var string
Returns
Type Description
$this