Class PortTypeMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.PortTypeMetadata
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PortTypeMetadataOrBuilder, Serializable

@Generated public final class PortTypeMetadata extends com.google.protobuf.GeneratedMessage implements PortTypeMetadataOrBuilder
Metadata for a port type, enabling data-driven port rendering.
Protobuf type soulfire.v1.PortTypeMetadata
See Also:
  • Field Details

    • PORT_TYPE_FIELD_NUMBER

      public static final int PORT_TYPE_FIELD_NUMBER
      See Also:
    • COLOR_FIELD_NUMBER

      public static final int COLOR_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • COMPATIBLE_FROM_FIELD_NUMBER

      public static final int COMPATIBLE_FROM_FIELD_NUMBER
      See Also:
    • HANDLE_SHAPE_FIELD_NUMBER

      public static final int HANDLE_SHAPE_FIELD_NUMBER
      See Also:
    • EDGE_STYLE_FIELD_NUMBER

      public static final int EDGE_STYLE_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:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getPortTypeValue

      public int getPortTypeValue()
      The port type this metadata applies to.
      
      .soulfire.v1.PortType port_type = 1;
      Specified by:
      getPortTypeValue in interface PortTypeMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for portType.
    • getPortType

      public PortType getPortType()
      The port type this metadata applies to.
      
      .soulfire.v1.PortType port_type = 1;
      Specified by:
      getPortType in interface PortTypeMetadataOrBuilder
      Returns:
      The portType.
    • getColor

      public String getColor()
      Display color for this port type (hex color code, e.g., "#22c55e").
      
      string color = 2;
      Specified by:
      getColor in interface PortTypeMetadataOrBuilder
      Returns:
      The color.
    • getColorBytes

      public com.google.protobuf.ByteString getColorBytes()
      Display color for this port type (hex color code, e.g., "#22c55e").
      
      string color = 2;
      Specified by:
      getColorBytes in interface PortTypeMetadataOrBuilder
      Returns:
      The bytes for color.
    • getDisplayName

      public String getDisplayName()
      Human-readable name for this port type.
      
      string display_name = 3;
      Specified by:
      getDisplayName in interface PortTypeMetadataOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
      Human-readable name for this port type.
      
      string display_name = 3;
      Specified by:
      getDisplayNameBytes in interface PortTypeMetadataOrBuilder
      Returns:
      The bytes for displayName.
    • getCompatibleFromList

      public List<PortType> getCompatibleFromList()
      List of port types that can be implicitly converted to this type.
      Used for connection validation. Empty means only exact matches allowed.
      
      repeated .soulfire.v1.PortType compatible_from = 4;
      Specified by:
      getCompatibleFromList in interface PortTypeMetadataOrBuilder
      Returns:
      A list containing the compatibleFrom.
    • getCompatibleFromCount

      public int getCompatibleFromCount()
      List of port types that can be implicitly converted to this type.
      Used for connection validation. Empty means only exact matches allowed.
      
      repeated .soulfire.v1.PortType compatible_from = 4;
      Specified by:
      getCompatibleFromCount in interface PortTypeMetadataOrBuilder
      Returns:
      The count of compatibleFrom.
    • getCompatibleFrom

      public PortType getCompatibleFrom(int index)
      List of port types that can be implicitly converted to this type.
      Used for connection validation. Empty means only exact matches allowed.
      
      repeated .soulfire.v1.PortType compatible_from = 4;
      Specified by:
      getCompatibleFrom in interface PortTypeMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The compatibleFrom at the given index.
    • getCompatibleFromValueList

      public List<Integer> getCompatibleFromValueList()
      List of port types that can be implicitly converted to this type.
      Used for connection validation. Empty means only exact matches allowed.
      
      repeated .soulfire.v1.PortType compatible_from = 4;
      Specified by:
      getCompatibleFromValueList in interface PortTypeMetadataOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for compatibleFrom.
    • getCompatibleFromValue

      public int getCompatibleFromValue(int index)
      List of port types that can be implicitly converted to this type.
      Used for connection validation. Empty means only exact matches allowed.
      
      repeated .soulfire.v1.PortType compatible_from = 4;
      Specified by:
      getCompatibleFromValue in interface PortTypeMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of compatibleFrom at the given index.
    • getHandleShapeValue

      public int getHandleShapeValue()
      Shape of the handle for this port type in the visual editor.
      
      .soulfire.v1.HandleShape handle_shape = 5;
      Specified by:
      getHandleShapeValue in interface PortTypeMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for handleShape.
    • getHandleShape

      public HandleShape getHandleShape()
      Shape of the handle for this port type in the visual editor.
      
      .soulfire.v1.HandleShape handle_shape = 5;
      Specified by:
      getHandleShape in interface PortTypeMetadataOrBuilder
      Returns:
      The handleShape.
    • getEdgeStyleValue

      public int getEdgeStyleValue()
      Visual style for edges of this port type.
      
      .soulfire.v1.EdgeStyle edge_style = 6;
      Specified by:
      getEdgeStyleValue in interface PortTypeMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for edgeStyle.
    • getEdgeStyle

      public EdgeStyle getEdgeStyle()
      Visual style for edges of this port type.
      
      .soulfire.v1.EdgeStyle edge_style = 6;
      Specified by:
      getEdgeStyle in interface PortTypeMetadataOrBuilder
      Returns:
      The edgeStyle.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PortTypeMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortTypeMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortTypeMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortTypeMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortTypeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortTypeMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortTypeMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PortTypeMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PortTypeMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PortTypeMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PortTypeMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PortTypeMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public PortTypeMetadata.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PortTypeMetadata.Builder newBuilder()
    • newBuilder

      public static PortTypeMetadata.Builder newBuilder(PortTypeMetadata prototype)
    • toBuilder

      public PortTypeMetadata.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PortTypeMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PortTypeMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PortTypeMetadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<PortTypeMetadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public PortTypeMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder