Immutable. A reference to a KMS encryption key. If provided, it will be used to encrypt the data. If left blank, data will be encrypted using an internal Stream-specific encryption key provisioned through KMS.
If provided, it will be used to encrypt the data.
If left blank, data will be encrypted using an internal Stream-specific
encryption key provisioned through KMS.
Returns
Type
Description
string
hasCustomerManagedEncryptionKey
clearCustomerManagedEncryptionKey
setCustomerManagedEncryptionKey
Immutable. A reference to a KMS encryption key.
If provided, it will be used to encrypt the data.
If left blank, data will be encrypted using an internal Stream-specific
encryption key provisioned through KMS.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLastRecoveryTime
Output only. If the stream was recovered, the time of the last recovery.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Datastream V1 Client - Class Stream (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/php/docs/reference/cloud-datastream/latest/V1.Stream)\n- [2.3.1](/php/docs/reference/cloud-datastream/2.3.1/V1.Stream)\n- [2.2.0](/php/docs/reference/cloud-datastream/2.2.0/V1.Stream)\n- [2.1.1](/php/docs/reference/cloud-datastream/2.1.1/V1.Stream)\n- [2.0.1](/php/docs/reference/cloud-datastream/2.0.1/V1.Stream)\n- [1.5.5](/php/docs/reference/cloud-datastream/1.5.5/V1.Stream)\n- [1.4.2](/php/docs/reference/cloud-datastream/1.4.2/V1.Stream)\n- [1.3.0](/php/docs/reference/cloud-datastream/1.3.0/V1.Stream)\n- [1.2.1](/php/docs/reference/cloud-datastream/1.2.1/V1.Stream)\n- [1.1.0](/php/docs/reference/cloud-datastream/1.1.0/V1.Stream)\n- [1.0.5](/php/docs/reference/cloud-datastream/1.0.5/V1.Stream) \nReference documentation and code samples for the Google Cloud Datastream V1 Client class Stream.\n\nA resource representing streaming data from a source to a destination.\n\nGenerated from protobuf message `google.cloud.datastream.v1.Stream`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Datastream \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. Identifier. The stream's name.\n\n### setName\n\nOutput only. Identifier. The stream's name.\n\n### getCreateTime\n\nOutput only. The creation time of the stream.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The creation time of the stream.\n\n### getUpdateTime\n\nOutput only. The last update time of the stream.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The last update time of the stream.\n\n### getLabels\n\nLabels.\n\n### setLabels\n\nLabels.\n\n### getDisplayName\n\nRequired. Display name.\n\n### setDisplayName\n\nRequired. Display name.\n\n### getSourceConfig\n\nRequired. Source connection profile configuration.\n\n### hasSourceConfig\n\n### clearSourceConfig\n\n### setSourceConfig\n\nRequired. Source connection profile configuration.\n\n### getDestinationConfig\n\nRequired. Destination connection profile configuration.\n\n### hasDestinationConfig\n\n### clearDestinationConfig\n\n### setDestinationConfig\n\nRequired. Destination connection profile configuration.\n\n### getState\n\nThe state of the stream.\n\n### setState\n\nThe state of the stream.\n\n### getBackfillAll\n\nAutomatically backfill objects included in the stream source\nconfiguration. Specific objects can be excluded.\n\n### hasBackfillAll\n\n### setBackfillAll\n\nAutomatically backfill objects included in the stream source\nconfiguration. Specific objects can be excluded.\n\n### getBackfillNone\n\nDo not automatically backfill any objects.\n\n### hasBackfillNone\n\n### setBackfillNone\n\nDo not automatically backfill any objects.\n\n### getErrors\n\nOutput only. Errors on the Stream.\n\n### setErrors\n\nOutput only. Errors on the Stream.\n\n### getCustomerManagedEncryptionKey\n\nImmutable. A reference to a KMS encryption key.\n\nIf provided, it will be used to encrypt the data.\nIf left blank, data will be encrypted using an internal Stream-specific\nencryption key provisioned through KMS.\n\n### hasCustomerManagedEncryptionKey\n\n### clearCustomerManagedEncryptionKey\n\n### setCustomerManagedEncryptionKey\n\nImmutable. A reference to a KMS encryption key.\n\nIf provided, it will be used to encrypt the data.\nIf left blank, data will be encrypted using an internal Stream-specific\nencryption key provisioned through KMS.\n\n### getLastRecoveryTime\n\nOutput only. If the stream was recovered, the time of the last recovery.\n\nNote: This field is currently experimental.\n\n### hasLastRecoveryTime\n\n### clearLastRecoveryTime\n\n### setLastRecoveryTime\n\nOutput only. If the stream was recovered, the time of the last recovery.\n\nNote: This field is currently experimental.\n\n### getSatisfiesPzs\n\nOutput only. Reserved for future use.\n\n### hasSatisfiesPzs\n\n### clearSatisfiesPzs\n\n### setSatisfiesPzs\n\nOutput only. Reserved for future use.\n\n### getSatisfiesPzi\n\nOutput only. Reserved for future use.\n\n### hasSatisfiesPzi\n\n### clearSatisfiesPzi\n\n### setSatisfiesPzi\n\nOutput only. Reserved for future use.\n\n### getBackfillStrategy"]]