Interface Instance.InputResourceOrBuilder (0.2.0)

public static interface Instance.InputResourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnnotatedStream() (deprecated)

public abstract StreamWithAnnotation getAnnotatedStream()

Deprecated. google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated. See google/cloud/visionai/v1/platform.proto;l=1508

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

.google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];

Returns
Type Description
StreamWithAnnotation

The annotatedStream.

getAnnotatedStreamOrBuilder() (deprecated)

public abstract StreamWithAnnotationOrBuilder getAnnotatedStreamOrBuilder()

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

.google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];

Returns
Type Description
StreamWithAnnotationOrBuilder

getAnnotations()

public abstract ResourceAnnotations getAnnotations()

Contains resource annotations.

.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;

Returns
Type Description
ResourceAnnotations

The annotations.

getAnnotationsOrBuilder()

public abstract ResourceAnnotationsOrBuilder getAnnotationsOrBuilder()

Contains resource annotations.

.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;

Returns
Type Description
ResourceAnnotationsOrBuilder

getConsumerNode()

public abstract String 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 consumer_node = 2;

Returns
Type Description
String

The consumerNode.

getConsumerNodeBytes()

public abstract ByteString getConsumerNodeBytes()

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 consumer_node = 2;

Returns
Type Description
ByteString

The bytes for consumerNode.

getDataType()

public abstract DataType getDataType()

Data type for the current input resource.

.google.cloud.visionai.v1.DataType data_type = 6;

Returns
Type Description
DataType

The dataType.

getDataTypeValue()

public abstract int getDataTypeValue()

Data type for the current input resource.

.google.cloud.visionai.v1.DataType data_type = 6;

Returns
Type Description
int

The enum numeric value on the wire for dataType.

getInputResource()

public abstract String 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 input_resource = 1;

Returns
Type Description
String

The inputResource.

getInputResourceBinding()

public abstract String getInputResourceBinding()

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

string input_resource_binding = 3;

Returns
Type Description
String

The inputResourceBinding.

getInputResourceBindingBytes()

public abstract ByteString getInputResourceBindingBytes()

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

string input_resource_binding = 3;

Returns
Type Description
ByteString

The bytes for inputResourceBinding.

getInputResourceBytes()

public abstract ByteString getInputResourceBytes()

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 input_resource = 1;

Returns
Type Description
ByteString

The bytes for inputResource.

getInputResourceInformationCase()

public abstract Instance.InputResource.InputResourceInformationCase getInputResourceInformationCase()
Returns
Type Description
Instance.InputResource.InputResourceInformationCase

hasAnnotatedStream() (deprecated)

public abstract boolean hasAnnotatedStream()

Deprecated. google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated. See google/cloud/visionai/v1/platform.proto;l=1508

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

.google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];

Returns
Type Description
boolean

Whether the annotatedStream field is set.

hasAnnotations()

public abstract boolean hasAnnotations()

Contains resource annotations.

.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;

Returns
Type Description
boolean

Whether the annotations field is set.

hasInputResource()

public abstract boolean hasInputResource()

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 input_resource = 1;

Returns
Type Description
boolean

Whether the inputResource field is set.