Google Cloud Storage Transfer V1 Client - Class EventStream (1.3.1)

Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class EventStream.

Specifies the Event-driven transfer options. Event-driven transfers listen to an event stream to transfer updated files.

Generated from protobuf message google.storagetransfer.v1.EventStream

Namespace

Google \ Cloud \ StorageTransfer \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. Specifies a unique name of the resource such as AWS SQS ARN in the form 'arn:aws:sqs:region:account_id:queue_name', or Pub/Sub subscription resource name in the form 'projects/{project}/subscriptions/{sub}'.

↳ event_stream_start_time Google\Protobuf\Timestamp

Specifies the date and time that Storage Transfer Service starts listening for events from this stream. If no start time is specified or start time is in the past, Storage Transfer Service starts listening immediately.

↳ event_stream_expiration_time Google\Protobuf\Timestamp

Specifies the data and time at which Storage Transfer Service stops listening for events from this stream. After this time, any transfers in progress will complete, but no new transfers are initiated.

getName

Required. Specifies a unique name of the resource such as AWS SQS ARN in the form 'arn:aws:sqs:region:account_id:queue_name', or Pub/Sub subscription resource name in the form 'projects/{project}/subscriptions/{sub}'.

Returns
TypeDescription
string

setName

Required. Specifies a unique name of the resource such as AWS SQS ARN in the form 'arn:aws:sqs:region:account_id:queue_name', or Pub/Sub subscription resource name in the form 'projects/{project}/subscriptions/{sub}'.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEventStreamStartTime

Specifies the date and time that Storage Transfer Service starts listening for events from this stream. If no start time is specified or start time is in the past, Storage Transfer Service starts listening immediately.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEventStreamStartTime

clearEventStreamStartTime

setEventStreamStartTime

Specifies the date and time that Storage Transfer Service starts listening for events from this stream. If no start time is specified or start time is in the past, Storage Transfer Service starts listening immediately.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEventStreamExpirationTime

Specifies the data and time at which Storage Transfer Service stops listening for events from this stream. After this time, any transfers in progress will complete, but no new transfers are initiated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEventStreamExpirationTime

clearEventStreamExpirationTime

setEventStreamExpirationTime

Specifies the data and time at which Storage Transfer Service stops listening for events from this stream. After this time, any transfers in progress will complete, but no new transfers are initiated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this