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

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

Message of input resource used in one application instance.

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

Namespace

Google \ Cloud \ VisionAI \ V1 \ Instance

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ input_resource string

The direct input resource name. If the instance type is STREAMING_PREDICTION, the input resource is in format of "projects/123/locations/us-central1/clusters/456/streams/stream-a". If the instance type is BATCH_PREDICTION from Cloud Storage input container, the input resource is in format of "gs://bucket-a".

↳ annotated_stream Google\Cloud\VisionAI\V1\StreamWithAnnotation

If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.

↳ data_type int

Data type for the current input resource.

↳ consumer_node string

The name of graph node who receives the input resource. For example: input_resource: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a consumer_node: stream-input

↳ input_resource_binding string

The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.

↳ annotations Google\Cloud\VisionAI\V1\ResourceAnnotations

Contains resource annotations.

getInputResource

The direct input resource name.

If the instance type is STREAMING_PREDICTION, the input resource is in format of "projects/123/locations/us-central1/clusters/456/streams/stream-a". If the instance type is BATCH_PREDICTION from Cloud Storage input container, the input resource is in format of "gs://bucket-a".

Returns
Type Description
string

hasInputResource

setInputResource

The direct input resource name.

If the instance type is STREAMING_PREDICTION, the input resource is in format of "projects/123/locations/us-central1/clusters/456/streams/stream-a". If the instance type is BATCH_PREDICTION from Cloud Storage input container, the input resource is in format of "gs://bucket-a".

Parameter
Name Description
var string
Returns
Type Description
$this

getAnnotatedStream

If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.

Returns
Type Description
Google\Cloud\VisionAI\V1\StreamWithAnnotation|null

hasAnnotatedStream

setAnnotatedStream

If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.

Parameter
Name Description
var Google\Cloud\VisionAI\V1\StreamWithAnnotation
Returns
Type Description
$this

getDataType

Data type for the current input resource.

Returns
Type Description
int Enum of type DataType.

setDataType

Data type for the current input resource.

Parameter
Name Description
var int

Enum of type DataType.

Returns
Type Description
$this

getConsumerNode

The name of graph node who receives the input resource.

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

Returns
Type Description
string

setConsumerNode

The name of graph node who receives the input resource.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getInputResourceBinding

The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.

Returns
Type Description
string

setInputResourceBinding

The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.

Parameter
Name Description
var string
Returns
Type Description
$this

getAnnotations

Contains resource annotations.

Returns
Type Description
Google\Cloud\VisionAI\V1\ResourceAnnotations|null

hasAnnotations

clearAnnotations

setAnnotations

Contains resource annotations.

Parameter
Name Description
var Google\Cloud\VisionAI\V1\ResourceAnnotations
Returns
Type Description
$this

getInputResourceInformation

Returns
Type Description
string