Class ProcessorIOSpec.GraphInputChannelSpec.Builder (0.14.1)

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

Message for input channel specification.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valueString

The acceptedDataTypeUris to add.

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

The bytes of the acceptedDataTypeUris to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The acceptedDataTypeUris to add.

Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

build()

public ProcessorIOSpec.GraphInputChannelSpec build()
Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec

buildPartial()

public ProcessorIOSpec.GraphInputChannelSpec buildPartial()
Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec

clear()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clear()
Returns
TypeDescription
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
TypeDescription
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.events.cloud.visionai.v1.DataType data_type = 2;

Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clearName()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearName()

The name of the current input channel.

string name = 1;

Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessorIOSpec.GraphInputChannelSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clone()

public ProcessorIOSpec.GraphInputChannelSpec.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

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

Returns
TypeDescription
int

The enum numeric value on the wire for dataType.

getDefaultInstanceForType()

public ProcessorIOSpec.GraphInputChannelSpec getDefaultInstanceForType()
Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
long

The maxConnectionAllowed.

getName()

public String getName()

The name of the current input channel.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the current input channel.

string name = 1;

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

The required.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProcessorIOSpec.GraphInputChannelSpec other)

public ProcessorIOSpec.GraphInputChannelSpec.Builder mergeFrom(ProcessorIOSpec.GraphInputChannelSpec other)
Parameter
NameDescription
otherProcessorIOSpec.GraphInputChannelSpec
Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProcessorIOSpec.GraphInputChannelSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProcessorIOSpec.GraphInputChannelSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessorIOSpec.GraphInputChannelSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The acceptedDataTypeUris to set.

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

Parameter
NameDescription
valueDataType

The dataType to set.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ProcessorIOSpec.GraphInputChannelSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The maxConnectionAllowed to set.

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

The name to set.

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

The bytes for name to set.

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

The required to set.

Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ProcessorIOSpec.GraphInputChannelSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides