Compute V1 Client - Class Warnings (1.21.0)

Reference documentation and code samples for the Compute V1 Client class Warnings.

Generated from protobuf message google.cloud.compute.v1.Warnings

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ code string

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Check the Code enum for the list of possible values.

↳ data array<Data>

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

↳ message string

[Output Only] A human-readable description of the warning code.

getCode

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.

Check the Code enum for the list of possible values.

Returns
Type Description
string

hasCode

clearCode

setCode

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.

Check the Code enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getData

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setData

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

Parameter
Name Description
var array<Data>
Returns
Type Description
$this

getMessage

[Output Only] A human-readable description of the warning code.

Returns
Type Description
string

hasMessage

clearMessage

setMessage

[Output Only] A human-readable description of the warning code.

Parameter
Name Description
var string
Returns
Type Description
$this