Class Instance.InputResource (0.37.0)
0.44.0 (latest)
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 final class Instance . InputResource extends GeneratedMessageV3 implements Instance . InputResourceOrBuilder
Message of input resource used in one application instance.
Protobuf type google.cloud.visionai.v1.Instance.InputResource
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ANNOTATED_STREAM_FIELD_NUMBER
Field Value
Type
Description
int
public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int CONSUMER_NODE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int DATA_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int INPUT_RESOURCE_BINDING_FIELD_NUMBER
Field Value
Type
Description
int
public static final int INPUT_RESOURCE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static Instance . InputResource getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static Instance . InputResource . Builder newBuilder ()
public static Instance . InputResource . Builder newBuilder ( Instance . InputResource prototype )
public static Instance . InputResource parseDelimitedFrom ( InputStream input )
public static Instance . InputResource parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static Instance . InputResource parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static Instance . InputResource parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static Instance . InputResource parseFrom ( ByteString data )
public static Instance . InputResource parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Instance . InputResource parseFrom ( CodedInputStream input )
public static Instance . InputResource parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Instance . InputResource parseFrom ( InputStream input )
public static Instance . InputResource parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static Instance . InputResource parseFrom ( ByteBuffer data )
public static Instance . InputResource parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<Instance . InputResource > parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public 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];
public 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];
public ResourceAnnotations getAnnotations ()
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
public ResourceAnnotationsOrBuilder getAnnotationsOrBuilder ()
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
public 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.
public 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.
public DataType getDataType ()
Data type for the current input resource.
.google.cloud.visionai.v1.DataType data_type = 6;
Returns
Type
Description
DataType
The dataType.
public 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.
public Instance . InputResource getDefaultInstanceForType ()
public 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.
public 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.
public 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.
public 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.
public Instance . InputResource . InputResourceInformationCase getInputResourceInformationCase ()
public Parser<Instance . InputResource > getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public 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.
public boolean hasAnnotations ()
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
Returns
Type
Description
boolean
Whether the annotations field is set.
public 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.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public Instance . InputResource . Builder newBuilderForType ()
protected Instance . InputResource . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public Instance . InputResource . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-14 UTC."],[],[]]