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 \ InstanceMethods
__construct
Constructor.
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
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".
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".
var
string
$this
getAnnotatedStream
If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
hasAnnotatedStream
setAnnotatedStream
If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
$this
getDataType
Data type for the current input resource.
setDataType
Data type for the current input resource.
$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
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
var
string
$this
getInputResourceBinding
The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.
string
setInputResourceBinding
The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.
var
string
$this
getAnnotations
Contains resource annotations.
hasAnnotations
clearAnnotations
setAnnotations
Contains resource annotations.
$this
getInputResourceInformation
string

