Class ProcessorIOSpec.GraphInputChannelSpec.Builder (0.6.0)

public static final class ProcessorIOSpec.GraphInputChannelSpec.Builder extends GeneratedMessageV3.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder> implements ProcessorIOSpec.GraphInputChannelSpecOrBuilder

Message for input channel specification.

Protobuf type google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec

Static Methods

getDescriptor()

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

Methods

addAcceptedDataTypeUris(String value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder addAcceptedDataTypeUris(String value)

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
value String

The acceptedDataTypeUris to add.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

addAcceptedDataTypeUrisBytes(ByteString value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder addAcceptedDataTypeUrisBytes(ByteString value)

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
value ByteString

The bytes of the acceptedDataTypeUris to add.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

addAllAcceptedDataTypeUris(Iterable<String> values)

public ProcessorIOSpec.GraphInputChannelSpec.Builder addAllAcceptedDataTypeUris(Iterable<String> values)

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
values Iterable<String>

The acceptedDataTypeUris to add.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

build()

public ProcessorIOSpec.GraphInputChannelSpec build()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec

buildPartial()

public ProcessorIOSpec.GraphInputChannelSpec buildPartial()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec

clear()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clear()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

clearAcceptedDataTypeUris()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearAcceptedDataTypeUris()

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
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clearDataType()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearDataType()

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
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

clearMaxConnectionAllowed()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearMaxConnectionAllowed()

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

int64 max_connection_allowed = 4;

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clearName()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearName()

The name of the current input channel.

string name = 1;

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

clearRequired()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearRequired()

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
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clone()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clone()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

getAcceptedDataTypeUris(int index)

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

A list containing the acceptedDataTypeUris.

getDataType()

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

getDefaultInstanceForType()

public ProcessorIOSpec.GraphInputChannelSpec getDefaultInstanceForType()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxConnectionAllowed()

public 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 String getName()

The name of the current input channel.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the current input channel.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getRequired()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProcessorIOSpec.GraphInputChannelSpec other)

public ProcessorIOSpec.GraphInputChannelSpec.Builder mergeFrom(ProcessorIOSpec.GraphInputChannelSpec other)
Parameter
Name Description
other ProcessorIOSpec.GraphInputChannelSpec
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProcessorIOSpec.GraphInputChannelSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProcessorIOSpec.GraphInputChannelSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessorIOSpec.GraphInputChannelSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

setAcceptedDataTypeUris(int index, String value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setAcceptedDataTypeUris(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The acceptedDataTypeUris to set.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

setDataType(DataType value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setDataType(DataType value)

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;

Parameter
Name Description
value DataType

The dataType to set.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

setDataTypeValue(int value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setDataTypeValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for dataType to set.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

setMaxConnectionAllowed(long value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setMaxConnectionAllowed(long value)

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

int64 max_connection_allowed = 4;

Parameter
Name Description
value long

The maxConnectionAllowed to set.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

setName(String value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setName(String value)

The name of the current input channel.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setNameBytes(ByteString value)

The name of the current input channel.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

setRequired(boolean value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setRequired(boolean value)

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;

Parameter
Name Description
value boolean

The required to set.

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ProcessorIOSpec.GraphInputChannelSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides