# Interface Instance.InputResourceOrBuilder (0.50.0)

0.50.0 (latest) 0.48.0 0.45.0 0.44.0 0.42.0 0.40.0 0.39.0 0.37.0 0.35.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.27.0 0.25.0 0.24.0 0.21.0 0.20.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public static interface Instance.InputResourceOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.StreamWithAnnotationOrBuilder` |   |

### getAnnotations()

    public abstract ResourceAnnotations getAnnotations()

Contains resource annotations.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.ResourceAnnotations` | The annotations. |

### getAnnotationsOrBuilder()

    public abstract ResourceAnnotationsOrBuilder getAnnotationsOrBuilder()

Contains resource annotations.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for inputResource. |

### getInputResourceInformationCase()

    public abstract Instance.InputResource.InputResourceInformationCase getInputResourceInformationCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the annotatedStream field is set. |

### hasAnnotations()

    public abstract boolean hasAnnotations()

Contains resource annotations.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the inputResource field is set. |