Google Cloud Vm Migration V1 Client - Class MigrationWarning (1.1.0)

Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class MigrationWarning.

Represents migration resource warning information that can be used with google.rpc.Status message. MigrationWarning is used to present the user with warning information in migration operations.

Generated from protobuf message google.cloud.vmmigration.v1.MigrationWarning

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ code int

The warning code.

↳ warning_message Google\Rpc\LocalizedMessage

Output only. The localized warning message.

↳ action_item Google\Rpc\LocalizedMessage

Output only. Suggested action for solving the warning.

↳ help_links array<Google\Rpc\Help\Link>

Output only. URL(s) pointing to additional information on handling the current warning.

↳ warning_time Google\Protobuf\Timestamp

The time the warning occurred.

getCode

The warning code.

Returns
Type Description
int Enum of type WarningCode.

setCode

The warning code.

Parameter
Name Description
var int

Enum of type WarningCode.

Returns
Type Description
$this

getWarningMessage

Output only. The localized warning message.

Returns
Type Description
Google\Rpc\LocalizedMessage|null

hasWarningMessage

clearWarningMessage

setWarningMessage

Output only. The localized warning message.

Parameter
Name Description
var Google\Rpc\LocalizedMessage
Returns
Type Description
$this

getActionItem

Output only. Suggested action for solving the warning.

Returns
Type Description
Google\Rpc\LocalizedMessage|null

hasActionItem

clearActionItem

setActionItem

Output only. Suggested action for solving the warning.

Parameter
Name Description
var Google\Rpc\LocalizedMessage
Returns
Type Description
$this

Output only. URL(s) pointing to additional information on handling the current warning.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

Output only. URL(s) pointing to additional information on handling the current warning.

Parameter
Name Description
var array<Google\Rpc\Help\Link>
Returns
Type Description
$this

getWarningTime

The time the warning occurred.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasWarningTime

clearWarningTime

setWarningTime

The time the warning occurred.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this