Class ProcessorIOSpec.GraphInputChannelSpec.Builder (0.24.0)

publicstaticfinalclass ProcessorIOSpec.GraphInputChannelSpec.BuilderextendsGeneratedMessageV3.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder>implementsProcessorIOSpec.GraphInputChannelSpecOrBuilder

Message for input channel specification.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAcceptedDataTypeUris(String value)

publicProcessorIOSpec.GraphInputChannelSpec.BuilderaddAcceptedDataTypeUris(Stringvalue)

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)

publicProcessorIOSpec.GraphInputChannelSpec.BuilderaddAcceptedDataTypeUrisBytes(ByteStringvalue)

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)

publicProcessorIOSpec.GraphInputChannelSpec.BuilderaddAllAcceptedDataTypeUris(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)

publicProcessorIOSpec.GraphInputChannelSpec.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

build()

publicProcessorIOSpec.GraphInputChannelSpecbuild()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec

buildPartial()

publicProcessorIOSpec.GraphInputChannelSpecbuildPartial()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec

clear()

publicProcessorIOSpec.GraphInputChannelSpec.Builderclear()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

clearAcceptedDataTypeUris()

publicProcessorIOSpec.GraphInputChannelSpec.BuilderclearAcceptedDataTypeUris()

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()

publicProcessorIOSpec.GraphInputChannelSpec.BuilderclearDataType()

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)

publicProcessorIOSpec.GraphInputChannelSpec.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

clearMaxConnectionAllowed()

publicProcessorIOSpec.GraphInputChannelSpec.BuilderclearMaxConnectionAllowed()

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()

publicProcessorIOSpec.GraphInputChannelSpec.BuilderclearName()

The name of the current input channel.

string name = 1;

Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicProcessorIOSpec.GraphInputChannelSpec.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

clearRequired()

publicProcessorIOSpec.GraphInputChannelSpec.BuilderclearRequired()

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()

publicProcessorIOSpec.GraphInputChannelSpec.Builderclone()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

getAcceptedDataTypeUris(int index)

publicStringgetAcceptedDataTypeUris(intindex)

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)

publicByteStringgetAcceptedDataTypeUrisBytes(intindex)

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()

publicintgetAcceptedDataTypeUrisCount()

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()

publicProtocolStringListgetAcceptedDataTypeUrisList()

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()

publicDataTypegetDataType()

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()

publicintgetDataTypeValue()

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()

publicProcessorIOSpec.GraphInputChannelSpecgetDefaultInstanceForType()
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxConnectionAllowed()

publiclonggetMaxConnectionAllowed()

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()

publicStringgetName()

The name of the current input channel.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The name of the current input channel.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getRequired()

publicbooleangetRequired()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProcessorIOSpec.GraphInputChannelSpec other)

publicProcessorIOSpec.GraphInputChannelSpec.BuildermergeFrom(ProcessorIOSpec.GraphInputChannelSpecother)
Parameter
Name Description
other ProcessorIOSpec.GraphInputChannelSpec
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicProcessorIOSpec.GraphInputChannelSpec.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicProcessorIOSpec.GraphInputChannelSpec.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalProcessorIOSpec.GraphInputChannelSpec.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

setAcceptedDataTypeUris(int index, String value)

publicProcessorIOSpec.GraphInputChannelSpec.BuildersetAcceptedDataTypeUris(intindex,Stringvalue)

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)

publicProcessorIOSpec.GraphInputChannelSpec.BuildersetDataType(DataTypevalue)

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)

publicProcessorIOSpec.GraphInputChannelSpec.BuildersetDataTypeValue(intvalue)

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)

publicProcessorIOSpec.GraphInputChannelSpec.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

setMaxConnectionAllowed(long value)

publicProcessorIOSpec.GraphInputChannelSpec.BuildersetMaxConnectionAllowed(longvalue)

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)

publicProcessorIOSpec.GraphInputChannelSpec.BuildersetName(Stringvalue)

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)

publicProcessorIOSpec.GraphInputChannelSpec.BuildersetNameBytes(ByteStringvalue)

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)

publicProcessorIOSpec.GraphInputChannelSpec.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

setRequired(boolean value)

publicProcessorIOSpec.GraphInputChannelSpec.BuildersetRequired(booleanvalue)

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)

publicfinalProcessorIOSpec.GraphInputChannelSpec.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessorIOSpec.GraphInputChannelSpec.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.