Google Cloud Sql Admin V1 Client - Class WorkloadReplayConfig (1.17.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class WorkloadReplayConfig.

The workload replay configuration for a Cloud SQL replay instance.

Generated from protobuf message google.cloud.sql.v1.WorkloadReplayConfig

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ workload_id string

Output only. The ID of the captured workload being replayed.

↳ source_instance string

Output only. The name of the source instance, excluding the project ID, where the workload was captured.

↳ replay_mode int

Output only. The mode of the workload replay.

↳ state int

Output only. The state of the workload replay.

↳ start_time Google\Protobuf\Timestamp

Output only. The start time of the workload replay.

↳ end_time Google\Protobuf\Timestamp

Output only. The end time of the workload replay. This field is unset while the replay is running.

getWorkloadId

Output only. The ID of the captured workload being replayed.

Returns
Type Description
string

hasWorkloadId

clearWorkloadId

setWorkloadId

Output only. The ID of the captured workload being replayed.

Parameter
Name Description
var string
Returns
Type Description
$this

getSourceInstance

Output only. The name of the source instance, excluding the project ID, where the workload was captured.

Returns
Type Description
string

hasSourceInstance

clearSourceInstance

setSourceInstance

Output only. The name of the source instance, excluding the project ID, where the workload was captured.

Parameter
Name Description
var string
Returns
Type Description
$this

getReplayMode

Output only. The mode of the workload replay.

Returns
Type Description
int

hasReplayMode

clearReplayMode

setReplayMode

Output only. The mode of the workload replay.

Parameter
Name Description
var int
Returns
Type Description
$this

getState

Output only. The state of the workload replay.

Returns
Type Description
int

hasState

clearState

setState

Output only. The state of the workload replay.

Parameter
Name Description
var int
Returns
Type Description
$this

getStartTime

Output only. The start time of the workload replay.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Output only. The start time of the workload replay.

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

getEndTime

Output only. The end time of the workload replay. This field is unset while the replay is running.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Output only. The end time of the workload replay. This field is unset while the replay is running.

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