Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::Instance::InputResource.
Message of input resource used in one application instance.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#annotated_stream
def annotated_stream() -> ::Google::Cloud::VisionAI::V1::StreamWithAnnotation
Returns
- (::Google::Cloud::VisionAI::V1::StreamWithAnnotation) — If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
#annotated_stream=
def annotated_stream=(value) -> ::Google::Cloud::VisionAI::V1::StreamWithAnnotation
Parameter
- value (::Google::Cloud::VisionAI::V1::StreamWithAnnotation) — If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
Returns
- (::Google::Cloud::VisionAI::V1::StreamWithAnnotation) — If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
#annotations
def annotations() -> ::Google::Cloud::VisionAI::V1::ResourceAnnotations
Returns
- (::Google::Cloud::VisionAI::V1::ResourceAnnotations) — Contains resource annotations.
#annotations=
def annotations=(value) -> ::Google::Cloud::VisionAI::V1::ResourceAnnotations
Parameter
- value (::Google::Cloud::VisionAI::V1::ResourceAnnotations) — Contains resource annotations.
Returns
- (::Google::Cloud::VisionAI::V1::ResourceAnnotations) — Contains resource annotations.
#consumer_node
def consumer_node() -> ::String
Returns
- (::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
#consumer_node=
def consumer_node=(value) -> ::String
Parameter
- value (::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
Returns
- (::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
#data_type
def data_type() -> ::Google::Cloud::VisionAI::V1::DataType
Returns
- (::Google::Cloud::VisionAI::V1::DataType) — Data type for the current input resource.
#data_type=
def data_type=(value) -> ::Google::Cloud::VisionAI::V1::DataType
Parameter
- value (::Google::Cloud::VisionAI::V1::DataType) — Data type for the current input resource.
Returns
- (::Google::Cloud::VisionAI::V1::DataType) — Data type for the current input resource.
#input_resource
def input_resource() -> ::String
Returns
- (::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".
#input_resource=
def input_resource=(value) -> ::String
Parameter
- value (::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".
Returns
- (::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".
#input_resource_binding
def input_resource_binding() -> ::String
Returns
- (::String) — The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.
#input_resource_binding=
def input_resource_binding=(value) -> ::String
Parameter
- value (::String) — The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.
Returns
- (::String) — The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.