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

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
NameDescription
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
TypeDescription
int

setCode

Output only. A warning code, if applicable.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getWarningMessage

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

Returns
TypeDescription
string

setWarningMessage

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this