Google Cloud Service Usage V1 Client - Class EnableFailure (1.3.4)

Reference documentation and code samples for the Google Cloud Service Usage V1 Client class EnableFailure.

Provides error messages for the failing services.

Generated from protobuf message google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure

Namespace

Google \ Cloud \ ServiceUsage \ V1 \ BatchEnableServicesResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ service_id string

The service id of a service that could not be enabled.

↳ error_message string

An error message describing why the service could not be enabled.

getServiceId

The service id of a service that could not be enabled.

Returns
Type Description
string

setServiceId

The service id of a service that could not be enabled.

Parameter
Name Description
var string
Returns
Type Description
$this

getErrorMessage

An error message describing why the service could not be enabled.

Returns
Type Description
string

setErrorMessage

An error message describing why the service could not be enabled.

Parameter
Name Description
var string
Returns
Type Description
$this