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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Network Connectivity V1 Client - Class Warnings (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-network-connectivity/latest/V1.PolicyBasedRoute.Warnings)\n- [2.2.2](/php/docs/reference/cloud-network-connectivity/2.2.2/V1.PolicyBasedRoute.Warnings)\n- [2.1.2](/php/docs/reference/cloud-network-connectivity/2.1.2/V1.PolicyBasedRoute.Warnings)\n- [2.0.2](/php/docs/reference/cloud-network-connectivity/2.0.2/V1.PolicyBasedRoute.Warnings)\n- [1.5.5](/php/docs/reference/cloud-network-connectivity/1.5.5/V1.PolicyBasedRoute.Warnings)\n- [1.4.2](/php/docs/reference/cloud-network-connectivity/1.4.2/V1.PolicyBasedRoute.Warnings)\n- [1.3.0](/php/docs/reference/cloud-network-connectivity/1.3.0/V1.PolicyBasedRoute.Warnings)\n- [1.2.0](/php/docs/reference/cloud-network-connectivity/1.2.0/V1.PolicyBasedRoute.Warnings)\n- [1.1.1](/php/docs/reference/cloud-network-connectivity/1.1.1/V1.PolicyBasedRoute.Warnings)\n- [1.0.5](/php/docs/reference/cloud-network-connectivity/1.0.5/V1.PolicyBasedRoute.Warnings) \nReference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Warnings.\n\nInformational warning message.\n\nGenerated from protobuf message `google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkConnectivity \\\\ V1 \\\\ PolicyBasedRoute\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCode\n\nOutput only. A warning code, if applicable.\n\n### setCode\n\nOutput only. A warning code, if applicable.\n\n### getData\n\nOutput only. Metadata about this warning in key: value format. The key\nshould provides more detail on the warning being returned. For example,\nfor warnings where there are no results in a list request for a\nparticular zone, this key might be scope and the key value might be the\nzone name. Other examples might be a key indicating a deprecated resource\nand a suggested replacement.\n\n### setData\n\nOutput only. Metadata about this warning in key: value format. The key\nshould provides more detail on the warning being returned. For example,\nfor warnings where there are no results in a list request for a\nparticular zone, this key might be scope and the key value might be the\nzone name. Other examples might be a key indicating a deprecated resource\nand a suggested replacement.\n\n### getWarningMessage\n\nOutput only. A human-readable description of the warning code.\n\n### setWarningMessage\n\nOutput only. A human-readable description of the warning code."]]