Google Cloud Vision Ai V1 Client - Class Instance (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class Instance.

Message describing Instance object Next ID: 12

Generated from protobuf message google.cloud.visionai.v1.Instance

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. name of resource

↳ create_time Google\Protobuf\Timestamp

Output only. [Output only] Create timestamp

↳ update_time Google\Protobuf\Timestamp

Output only. [Output only] Update timestamp

↳ labels array|Google\Protobuf\Internal\MapField

Labels as key value pairs

↳ display_name string

Required. A user friendly display name for the solution.

↳ description string

A description for this instance.

↳ instance_type int

The instance type for the current instance.

↳ input_resources array<Instance\InputResource>

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

↳ output_resources array<Instance\OutputResource>

All the output resources associated to one application instance.

↳ state int

State of the instance.

getName

Output only. name of resource

Returns
Type Description
string

setName

Output only. name of resource

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. [Output only] Create timestamp

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. [Output only] Create timestamp

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

getUpdateTime

Output only. [Output only] Update timestamp

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. [Output only] Update timestamp

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

getLabels

Labels as key value pairs

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Labels as key value pairs

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getDisplayName

Required. A user friendly display name for the solution.

Returns
Type Description
string

setDisplayName

Required. A user friendly display name for the solution.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

A description for this instance.

Returns
Type Description
string

setDescription

A description for this instance.

Parameter
Name Description
var string
Returns
Type Description
$this

getInstanceType

The instance type for the current instance.

Returns
Type Description
int Enum of type InstanceType.

setInstanceType

The instance type for the current instance.

Parameter
Name Description
var int

Enum of type InstanceType.

Returns
Type Description
$this

getInputResources

The input resources for the current application instance.

For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setInputResources

The input resources for the current application instance.

For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

Parameter
Name Description
var array<Instance\InputResource>
Returns
Type Description
$this

getOutputResources

All the output resources associated to one application instance.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setOutputResources

All the output resources associated to one application instance.

Parameter
Name Description
var array<Instance\OutputResource>
Returns
Type Description
$this

getState

State of the instance.

Returns
Type Description
int Enum of type State.

setState

State of the instance.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this