Google Cloud Vm Migration V1 Client - Class MigrationError (1.0.5)

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

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

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

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ code
int

Output only. The error code.

↳ error_message
Google\Rpc\LocalizedMessage

Output only. The localized error message.

↳ action_item
Google\Rpc\LocalizedMessage

Output only. Suggested action for solving the error.

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

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

↳ error_time
Google\Protobuf\Timestamp

Output only. The time the error occurred.

getCode

Output only. The error code.

Returns
Type
Description
int

setCode

Output only. The error code.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getErrorMessage

Output only. The localized error message.

Returns
Type
Description

hasErrorMessage

clearErrorMessage

setErrorMessage

Output only. The localized error message.

Parameter
Name
Description
Returns
Type
Description
$this

getActionItem

Output only. Suggested action for solving the error.

Returns
Type
Description

hasActionItem

clearActionItem

setActionItem

Output only. Suggested action for solving the error.

Parameter
Name
Description
Returns
Type
Description
$this

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

Returns
Type
Description

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

Parameter
Name
Description
var
Returns
Type
Description
$this

getErrorTime

Output only. The time the error occurred.

Returns
Type
Description

hasErrorTime

clearErrorTime

setErrorTime

Output only. The time the error occurred.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: