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