Google Cloud Tpu V2 Client - Class QueueingPolicy (2.1.0)

Reference documentation and code samples for the Google Cloud Tpu V2 Client class QueueingPolicy.

Defines the policy of the QueuedRequest.

Generated from protobuf message google.cloud.tpu.v2.QueuedResource.QueueingPolicy

Namespace

Google \ Cloud \ Tpu \ V2 \ QueuedResource

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ valid_until_duration Google\Protobuf\Duration

Optional. A relative time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.

↳ valid_until_time Google\Protobuf\Timestamp

Optional. An absolute time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.

↳ valid_after_duration Google\Protobuf\Duration

Optional. A relative time after which resources may be created.

↳ valid_after_time Google\Protobuf\Timestamp

Optional. An absolute time after which resources may be created.

↳ valid_interval Google\Type\Interval

Optional. An absolute time interval within which resources may be created.

getValidUntilDuration

Optional. A relative time after which resources should not be created.

If the request cannot be fulfilled by this time the request will be failed.

Returns
Type Description
Google\Protobuf\Duration|null

hasValidUntilDuration

setValidUntilDuration

Optional. A relative time after which resources should not be created.

If the request cannot be fulfilled by this time the request will be failed.

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

getValidUntilTime

Optional. An absolute time after which resources should not be created.

If the request cannot be fulfilled by this time the request will be failed.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasValidUntilTime

setValidUntilTime

Optional. An absolute time after which resources should not be created.

If the request cannot be fulfilled by this time the request will be failed.

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

getValidAfterDuration

Optional. A relative time after which resources may be created.

Returns
Type Description
Google\Protobuf\Duration|null

hasValidAfterDuration

setValidAfterDuration

Optional. A relative time after which resources may be created.

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

getValidAfterTime

Optional. An absolute time after which resources may be created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasValidAfterTime

setValidAfterTime

Optional. An absolute time after which resources may be created.

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

getValidInterval

Optional. An absolute time interval within which resources may be created.

Returns
Type Description
Google\Type\Interval|null

hasValidInterval

setValidInterval

Optional. An absolute time interval within which resources may be created.

Parameter
Name Description
var Google\Type\Interval
Returns
Type Description
$this

getStartTimingConstraints

Returns
Type Description
string