Package com.google.cloud.visionai.v1
Class ProcessorIOSpec.GraphInputChannelSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder>
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder
- All Implemented Interfaces:
ProcessorIOSpec.GraphInputChannelSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ProcessorIOSpec.GraphInputChannelSpec
public static final class ProcessorIOSpec.GraphInputChannelSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder>
implements ProcessorIOSpec.GraphInputChannelSpecOrBuilder
Message for input channel specification.Protobuf type
google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAcceptedDataTypeUris(String value) If specified, only those detailed data types can be connected to the processor.addAcceptedDataTypeUrisBytes(com.google.protobuf.ByteString value) If specified, only those detailed data types can be connected to the processor.addAllAcceptedDataTypeUris(Iterable<String> values) If specified, only those detailed data types can be connected to the processor.build()clear()If specified, only those detailed data types can be connected to the processor.The data types of the current input channel.How many input edges can be connected to this input channel. 0 means unlimited.The name of the current input channel.Whether the current input channel is required by the processor.getAcceptedDataTypeUris(int index) If specified, only those detailed data types can be connected to the processor.com.google.protobuf.ByteStringgetAcceptedDataTypeUrisBytes(int index) If specified, only those detailed data types can be connected to the processor.intIf specified, only those detailed data types can be connected to the processor.com.google.protobuf.ProtocolStringListIf specified, only those detailed data types can be connected to the processor.The data types of the current input channel.intThe data types of the current input channel.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongHow many input edges can be connected to this input channel. 0 means unlimited.getName()The name of the current input channel.com.google.protobuf.ByteStringThe name of the current input channel.booleanWhether the current input channel is required by the processor.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAcceptedDataTypeUris(int index, String value) If specified, only those detailed data types can be connected to the processor.setDataType(DataType value) The data types of the current input channel.setDataTypeValue(int value) The data types of the current input channel.setMaxConnectionAllowed(long value) How many input edges can be connected to this input channel. 0 means unlimited.The name of the current input channel.setNameBytes(com.google.protobuf.ByteString value) The name of the current input channel.setRequired(boolean value) Whether the current input channel is required by the processor.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder>
-
mergeFrom
public ProcessorIOSpec.GraphInputChannelSpec.Builder mergeFrom(ProcessorIOSpec.GraphInputChannelSpec other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder>
-
mergeFrom
public ProcessorIOSpec.GraphInputChannelSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProcessorIOSpec.GraphInputChannelSpec.Builder>- Throws:
IOException
-
getName
The name of the current input channel.
string name = 1;- Specified by:
getNamein interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the current input channel.
string name = 1;- Specified by:
getNameBytesin interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the current input channel.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the current input channel.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public ProcessorIOSpec.GraphInputChannelSpec.Builder setNameBytes(com.google.protobuf.ByteString value) The name of the current input channel.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getDataTypeValuein interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Returns:
- The enum numeric value on the wire for dataType.
-
setDataTypeValue
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;- Parameters:
value- The enum numeric value on the wire for dataType to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getDataTypein interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Returns:
- The dataType.
-
setDataType
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;- Parameters:
value- The dataType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getAcceptedDataTypeUrisList
public com.google.protobuf.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;- Specified by:
getAcceptedDataTypeUrisListin interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Returns:
- A list containing the acceptedDataTypeUris.
-
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;- Specified by:
getAcceptedDataTypeUrisCountin interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Returns:
- The count of acceptedDataTypeUris.
-
getAcceptedDataTypeUris
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;- Specified by:
getAcceptedDataTypeUrisin interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The acceptedDataTypeUris at the given index.
-
getAcceptedDataTypeUrisBytes
public com.google.protobuf.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;- Specified by:
getAcceptedDataTypeUrisBytesin interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the acceptedDataTypeUris at the given index.
-
setAcceptedDataTypeUris
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:
index- The index to set the value at.value- The acceptedDataTypeUris to set.- Returns:
- This builder for chaining.
-
addAcceptedDataTypeUris
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:
value- The acceptedDataTypeUris to add.- Returns:
- This builder for chaining.
-
addAllAcceptedDataTypeUris
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;- Parameters:
values- The acceptedDataTypeUris to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addAcceptedDataTypeUrisBytes
public ProcessorIOSpec.GraphInputChannelSpec.Builder addAcceptedDataTypeUrisBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the acceptedDataTypeUris to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
getRequiredin interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Returns:
- The required.
-
setRequired
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;- Parameters:
value- The required to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getMaxConnectionAllowed
public long getMaxConnectionAllowed()How many input edges can be connected to this input channel. 0 means unlimited.
int64 max_connection_allowed = 4;- Specified by:
getMaxConnectionAllowedin interfaceProcessorIOSpec.GraphInputChannelSpecOrBuilder- Returns:
- The maxConnectionAllowed.
-
setMaxConnectionAllowed
How many input edges can be connected to this input channel. 0 means unlimited.
int64 max_connection_allowed = 4;- Parameters:
value- The maxConnectionAllowed to set.- Returns:
- This builder for chaining.
-
clearMaxConnectionAllowed
How many input edges can be connected to this input channel. 0 means unlimited.
int64 max_connection_allowed = 4;- Returns:
- This builder for chaining.
-