Class PortDefinition
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.PortDefinition
- All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PortDefinitionOrBuilder, Serializable
@Generated
public final class PortDefinition
extends com.google.protobuf.GeneratedMessage
implements PortDefinitionOrBuilder
Definition of a port (input or output) on a node type. Describes the port's type, constraints, and display properties.Protobuf type
soulfire.v1.PortDefinition- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDefinition of a port (input or output) on a node type.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAcceptedTypes(int index) For polymorphic ports, the list of accepted types.intFor polymorphic ports, the list of accepted types.For polymorphic ports, the list of accepted types.intgetAcceptedTypesValue(int index) For polymorphic ports, the list of accepted types.For polymorphic ports, the list of accepted types.static PortDefinitionDefault value for this port when not connected (JSON-encoded).com.google.protobuf.ByteStringDefault value for this port when not connected (JSON-encoded).Optional description explaining what this port is for.com.google.protobuf.ByteStringOptional description explaining what this port is for.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorHuman-readable name displayed in the UI.com.google.protobuf.ByteStringHuman-readable name displayed in the UI.For list ports, the type of elements in the list.intFor list ports, the type of elements in the list.getId()The identifier for this port.com.google.protobuf.ByteStringThe identifier for this port.For dynamic output ports, the ID of the input port to inherit type from.com.google.protobuf.ByteStringFor dynamic output ports, the ID of the input port to inherit type from.booleanWhether this input accepts multiple connections (Blender-style multi-input).com.google.protobuf.Parser<PortDefinition> The data type this port accepts or produces.intThe data type this port accepts or produces.booleanWhether this input is required for the node to execute.intOptional generic type descriptor for parameterized types.Optional generic type descriptor for parameterized types.booleanDefault value for this port when not connected (JSON-encoded).booleanFor list ports, the type of elements in the list.inthashCode()booleanOptional generic type descriptor for parameterized types.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic PortDefinition.Builderstatic PortDefinition.BuildernewBuilder(PortDefinition prototype) protected PortDefinition.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static PortDefinitionparseDelimitedFrom(InputStream input) static PortDefinitionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PortDefinitionparseFrom(byte[] data) static PortDefinitionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PortDefinitionparseFrom(com.google.protobuf.ByteString data) static PortDefinitionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PortDefinitionparseFrom(com.google.protobuf.CodedInputStream input) static PortDefinitionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PortDefinitionparseFrom(InputStream input) static PortDefinitionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PortDefinitionparseFrom(ByteBuffer data) static PortDefinitionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PortDefinition> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
PORT_TYPE_FIELD_NUMBER
public static final int PORT_TYPE_FIELD_NUMBER- See Also:
-
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER- See Also:
-
DEFAULT_VALUE_FIELD_NUMBER
public static final int DEFAULT_VALUE_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
ELEMENT_TYPE_FIELD_NUMBER
public static final int ELEMENT_TYPE_FIELD_NUMBER- See Also:
-
MULTI_INPUT_FIELD_NUMBER
public static final int MULTI_INPUT_FIELD_NUMBER- See Also:
-
ACCEPTED_TYPES_FIELD_NUMBER
public static final int ACCEPTED_TYPES_FIELD_NUMBER- See Also:
-
INFER_TYPE_FROM_FIELD_NUMBER
public static final int INFER_TYPE_FROM_FIELD_NUMBER- See Also:
-
TYPE_DESCRIPTOR_FIELD_NUMBER
public static final int TYPE_DESCRIPTOR_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getId
The identifier for this port. Used in edge connections (source_handle/target_handle). Examples: "value", "target", "bot", "exec_in", "exec_out".
string id = 1;- Specified by:
getIdin interfacePortDefinitionOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The identifier for this port. Used in edge connections (source_handle/target_handle). Examples: "value", "target", "bot", "exec_in", "exec_out".
string id = 1;- Specified by:
getIdBytesin interfacePortDefinitionOrBuilder- Returns:
- The bytes for id.
-
getDisplayName
Human-readable name displayed in the UI. Examples: "Target Position", "Bot", "Message".
string display_name = 2;- Specified by:
getDisplayNamein interfacePortDefinitionOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Human-readable name displayed in the UI. Examples: "Target Position", "Bot", "Message".
string display_name = 2;- Specified by:
getDisplayNameBytesin interfacePortDefinitionOrBuilder- Returns:
- The bytes for displayName.
-
getPortTypeValue
public int getPortTypeValue()The data type this port accepts or produces.
.soulfire.v1.PortType port_type = 3;- Specified by:
getPortTypeValuein interfacePortDefinitionOrBuilder- Returns:
- The enum numeric value on the wire for portType.
-
getPortType
The data type this port accepts or produces.
.soulfire.v1.PortType port_type = 3;- Specified by:
getPortTypein interfacePortDefinitionOrBuilder- Returns:
- The portType.
-
getRequired
public boolean getRequired()Whether this input is required for the node to execute. Only applicable for input ports.
bool required = 4;- Specified by:
getRequiredin interfacePortDefinitionOrBuilder- Returns:
- The required.
-
hasDefaultValue
public boolean hasDefaultValue()Default value for this port when not connected (JSON-encoded). Only applicable for input ports.
optional string default_value = 5;- Specified by:
hasDefaultValuein interfacePortDefinitionOrBuilder- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
Default value for this port when not connected (JSON-encoded). Only applicable for input ports.
optional string default_value = 5;- Specified by:
getDefaultValuein interfacePortDefinitionOrBuilder- Returns:
- The defaultValue.
-
getDefaultValueBytes
public com.google.protobuf.ByteString getDefaultValueBytes()Default value for this port when not connected (JSON-encoded). Only applicable for input ports.
optional string default_value = 5;- Specified by:
getDefaultValueBytesin interfacePortDefinitionOrBuilder- Returns:
- The bytes for defaultValue.
-
getDescription
Optional description explaining what this port is for.
string description = 6;- Specified by:
getDescriptionin interfacePortDefinitionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional description explaining what this port is for.
string description = 6;- Specified by:
getDescriptionBytesin interfacePortDefinitionOrBuilder- Returns:
- The bytes for description.
-
hasElementType
public boolean hasElementType()For list ports, the type of elements in the list. Only applicable when port_type is PORT_TYPE_LIST.
optional .soulfire.v1.PortType element_type = 7;- Specified by:
hasElementTypein interfacePortDefinitionOrBuilder- Returns:
- Whether the elementType field is set.
-
getElementTypeValue
public int getElementTypeValue()For list ports, the type of elements in the list. Only applicable when port_type is PORT_TYPE_LIST.
optional .soulfire.v1.PortType element_type = 7;- Specified by:
getElementTypeValuein interfacePortDefinitionOrBuilder- Returns:
- The enum numeric value on the wire for elementType.
-
getElementType
For list ports, the type of elements in the list. Only applicable when port_type is PORT_TYPE_LIST.
optional .soulfire.v1.PortType element_type = 7;- Specified by:
getElementTypein interfacePortDefinitionOrBuilder- Returns:
- The elementType.
-
getMultiInput
public boolean getMultiInput()Whether this input accepts multiple connections (Blender-style multi-input). When true, all connected values are collected into a list. Visually rendered as a pill/ellipsis shaped socket.
bool multi_input = 8;- Specified by:
getMultiInputin interfacePortDefinitionOrBuilder- Returns:
- The multiInput.
-
getAcceptedTypesList
For polymorphic ports, the list of accepted types. If non-empty, this port can accept any of these types and will adapt its behavior based on the connected type.
repeated .soulfire.v1.PortType accepted_types = 9;- Specified by:
getAcceptedTypesListin interfacePortDefinitionOrBuilder- Returns:
- A list containing the acceptedTypes.
-
getAcceptedTypesCount
public int getAcceptedTypesCount()For polymorphic ports, the list of accepted types. If non-empty, this port can accept any of these types and will adapt its behavior based on the connected type.
repeated .soulfire.v1.PortType accepted_types = 9;- Specified by:
getAcceptedTypesCountin interfacePortDefinitionOrBuilder- Returns:
- The count of acceptedTypes.
-
getAcceptedTypes
For polymorphic ports, the list of accepted types. If non-empty, this port can accept any of these types and will adapt its behavior based on the connected type.
repeated .soulfire.v1.PortType accepted_types = 9;- Specified by:
getAcceptedTypesin interfacePortDefinitionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The acceptedTypes at the given index.
-
getAcceptedTypesValueList
For polymorphic ports, the list of accepted types. If non-empty, this port can accept any of these types and will adapt its behavior based on the connected type.
repeated .soulfire.v1.PortType accepted_types = 9;- Specified by:
getAcceptedTypesValueListin interfacePortDefinitionOrBuilder- Returns:
- A list containing the enum numeric values on the wire for acceptedTypes.
-
getAcceptedTypesValue
public int getAcceptedTypesValue(int index) For polymorphic ports, the list of accepted types. If non-empty, this port can accept any of these types and will adapt its behavior based on the connected type.
repeated .soulfire.v1.PortType accepted_types = 9;- Specified by:
getAcceptedTypesValuein interfacePortDefinitionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of acceptedTypes at the given index.
-
getInferTypeFrom
For dynamic output ports, the ID of the input port to inherit type from. Used for polymorphic nodes where output type depends on input type.
string infer_type_from = 10;- Specified by:
getInferTypeFromin interfacePortDefinitionOrBuilder- Returns:
- The inferTypeFrom.
-
getInferTypeFromBytes
public com.google.protobuf.ByteString getInferTypeFromBytes()For dynamic output ports, the ID of the input port to inherit type from. Used for polymorphic nodes where output type depends on input type.
string infer_type_from = 10;- Specified by:
getInferTypeFromBytesin interfacePortDefinitionOrBuilder- Returns:
- The bytes for inferTypeFrom.
-
hasTypeDescriptor
public boolean hasTypeDescriptor()Optional generic type descriptor for parameterized types. When present, provides richer type information than the flat port_type field. For example, List<Bot> or a type variable T that resolves from connections.
optional .soulfire.v1.TypeDescriptor type_descriptor = 11;- Specified by:
hasTypeDescriptorin interfacePortDefinitionOrBuilder- Returns:
- Whether the typeDescriptor field is set.
-
getTypeDescriptor
Optional generic type descriptor for parameterized types. When present, provides richer type information than the flat port_type field. For example, List<Bot> or a type variable T that resolves from connections.
optional .soulfire.v1.TypeDescriptor type_descriptor = 11;- Specified by:
getTypeDescriptorin interfacePortDefinitionOrBuilder- Returns:
- The typeDescriptor.
-
getTypeDescriptorOrBuilder
Optional generic type descriptor for parameterized types. When present, provides richer type information than the flat port_type field. For example, List<Bot> or a type variable T that resolves from connections.
optional .soulfire.v1.TypeDescriptor type_descriptor = 11;- Specified by:
getTypeDescriptorOrBuilderin interfacePortDefinitionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PortDefinition parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PortDefinition parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PortDefinition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PortDefinition parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PortDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PortDefinition parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PortDefinition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PortDefinition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PortDefinition parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PortDefinition parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PortDefinition.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-