Interface ProcessorIOSpec.GraphInputChannelSpecOrBuilder (0.14.1)

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.events.cloud.visionai.v1.DataType data_type = 2;

Returns
TypeDescription
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.events.cloud.visionai.v1.DataType data_type = 2;

Returns
TypeDescription
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
TypeDescription
long

The maxConnectionAllowed.

getName()

public abstract String getName()

The name of the current input channel.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the current input channel.

string name = 1;

Returns
TypeDescription
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
TypeDescription
boolean

The required.