Interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder (0.6.0)

public static interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAcceptedDataTypeUris(int index)

public abstract String getAcceptedDataTypeUris(int index)

If specified, only those detailed data types can be connected to the processor. For example, jpeg stream for MEDIA, or PredictionResult proto for PROTO type. If unspecified, then any proto is accepted.

repeated string accepted_data_type_uris = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The acceptedDataTypeUris at the given index.

getAcceptedDataTypeUrisBytes(int index)

public abstract ByteString getAcceptedDataTypeUrisBytes(int index)

If specified, only those detailed data types can be connected to the processor. For example, jpeg stream for MEDIA, or PredictionResult proto for PROTO type. If unspecified, then any proto is accepted.

repeated string accepted_data_type_uris = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the acceptedDataTypeUris at the given index.

getAcceptedDataTypeUrisCount()

public abstract int getAcceptedDataTypeUrisCount()

If specified, only those detailed data types can be connected to the processor. For example, jpeg stream for MEDIA, or PredictionResult proto for PROTO type. If unspecified, then any proto is accepted.

repeated string accepted_data_type_uris = 5;

Returns
Type Description
int

The count of acceptedDataTypeUris.

getAcceptedDataTypeUrisList()

public abstract List<String> getAcceptedDataTypeUrisList()

If specified, only those detailed data types can be connected to the processor. For example, jpeg stream for MEDIA, or PredictionResult proto for PROTO type. If unspecified, then any proto is accepted.

repeated string accepted_data_type_uris = 5;

Returns
Type Description
List<String>

A list containing the acceptedDataTypeUris.

getDataType()

public abstract DataType getDataType()

The data types of the current input channel. When this field has more than 1 value, it means this input channel can be connected to either of these different data types.

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

Returns
Type Description
DataType

The dataType.

getDataTypeValue()

public abstract int getDataTypeValue()

The data types of the current input channel. When this field has more than 1 value, it means this input channel can be connected to either of these different data types.

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

Returns
Type Description
int

The enum numeric value on the wire for dataType.

getMaxConnectionAllowed()

public abstract long getMaxConnectionAllowed()

How many input edges can be connected to this input channel. 0 means unlimited.

int64 max_connection_allowed = 4;

Returns
Type Description
long

The maxConnectionAllowed.

getName()

public abstract String getName()

The name of the current input channel.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the current input channel.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getRequired()

public abstract boolean getRequired()

Whether the current input channel is required by the processor. For example, for a processor with required video input and optional audio input, if video input is missing, the application will be rejected while the audio input can be missing as long as the video input exists.

bool required = 3;

Returns
Type Description
boolean

The required.