Class Instance.InputResource (0.5.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

Static Fields

ANNOTATED_STREAM_FIELD_NUMBER

public static final int ANNOTATED_STREAM_FIELD_NUMBER
Field Value
Type Description
int

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

CONSUMER_NODE_FIELD_NUMBER

public static final int CONSUMER_NODE_FIELD_NUMBER
Field Value
Type Description
int

DATA_TYPE_FIELD_NUMBER

public static final int DATA_TYPE_FIELD_NUMBER
Field Value
Type Description
int

INPUT_RESOURCE_BINDING_FIELD_NUMBER

public static final int INPUT_RESOURCE_BINDING_FIELD_NUMBER
Field Value
Type Description
int

INPUT_RESOURCE_FIELD_NUMBER

public static final int INPUT_RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Instance.InputResource getDefaultInstance()
Returns
Type Description
Instance.InputResource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Instance.InputResource.Builder newBuilder()
Returns
Type Description
Instance.InputResource.Builder

newBuilder(Instance.InputResource prototype)

public static Instance.InputResource.Builder newBuilder(Instance.InputResource prototype)
Parameter
Name Description
prototype Instance.InputResource
Returns
Type Description
Instance.InputResource.Builder

parseDelimitedFrom(InputStream input)

public static Instance.InputResource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.InputResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Instance.InputResource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Instance.InputResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Instance.InputResource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Instance.InputResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Instance.InputResource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.InputResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Instance.InputResource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.InputResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Instance.InputResource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Instance.InputResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.InputResource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Instance.InputResource> parser()
Returns
Type Description
Parser<InputResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAnnotatedStream() (deprecated)

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];

Returns
Type Description
StreamWithAnnotation

The annotatedStream.

getAnnotatedStreamOrBuilder() (deprecated)

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];

Returns
Type Description
StreamWithAnnotationOrBuilder

getAnnotations()

public ResourceAnnotations getAnnotations()

Contains resource annotations.

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

Returns
Type Description
ResourceAnnotations

The annotations.

getAnnotationsOrBuilder()

public ResourceAnnotationsOrBuilder getAnnotationsOrBuilder()

Contains resource annotations.

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

Returns
Type Description
ResourceAnnotationsOrBuilder

getConsumerNode()

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.

getConsumerNodeBytes()

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.

getDataType()

public 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 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.

getDefaultInstanceForType()

public Instance.InputResource getDefaultInstanceForType()
Returns
Type Description
Instance.InputResource

getInputResource()

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.

getInputResourceBinding()

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.

getInputResourceBindingBytes()

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.

getInputResourceBytes()

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.

getInputResourceInformationCase()

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

getParserForType()

public Parser<Instance.InputResource> getParserForType()
Returns
Type Description
Parser<InputResource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAnnotatedStream() (deprecated)

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.

hasAnnotations()

public boolean hasAnnotations()

Contains resource annotations.

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

Returns
Type Description
boolean

Whether the annotations field is set.

hasInputResource()

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Instance.InputResource.Builder newBuilderForType()
Returns
Type Description
Instance.InputResource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Instance.InputResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Instance.InputResource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Instance.InputResource.Builder toBuilder()
Returns
Type Description
Instance.InputResource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException