Class PortTypeMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<PortTypeMetadata.Builder>
com.google.protobuf.GeneratedMessage.Builder<PortTypeMetadata.Builder>
com.soulfiremc.grpc.generated.PortTypeMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PortTypeMetadataOrBuilder, Cloneable
Enclosing class:
PortTypeMetadata

public static final class PortTypeMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<PortTypeMetadata.Builder> implements PortTypeMetadataOrBuilder
Metadata for a port type, enabling data-driven port rendering.
Protobuf type soulfire.v1.PortTypeMetadata
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PortTypeMetadata.Builder>
    • clear

      public PortTypeMetadata.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PortTypeMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PortTypeMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

      public PortTypeMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PortTypeMetadata.Builder>
    • mergeFrom

      public PortTypeMetadata.Builder mergeFrom(PortTypeMetadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PortTypeMetadata.Builder>
    • mergeFrom

      public PortTypeMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PortTypeMetadata.Builder>
      Throws:
      IOException
    • 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.
    • setPortTypeValue

      public PortTypeMetadata.Builder setPortTypeValue(int value)
      The port type this metadata applies to.
      
      .soulfire.v1.PortType port_type = 1;
      Parameters:
      value - The enum numeric value on the wire for portType to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • 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.
    • setPortType

      public PortTypeMetadata.Builder setPortType(PortType value)
      The port type this metadata applies to.
      
      .soulfire.v1.PortType port_type = 1;
      Parameters:
      value - The portType to set.
      Returns:
      This builder for chaining.
    • clearPortType

      public PortTypeMetadata.Builder clearPortType()
      The port type this metadata applies to.
      
      .soulfire.v1.PortType port_type = 1;
      Returns:
      This builder for chaining.
    • 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.
    • setColor

      public PortTypeMetadata.Builder setColor(String value)
      Display color for this port type (hex color code, e.g., "#22c55e").
      
      string color = 2;
      Parameters:
      value - The color to set.
      Returns:
      This builder for chaining.
    • clearColor

      public PortTypeMetadata.Builder clearColor()
      Display color for this port type (hex color code, e.g., "#22c55e").
      
      string color = 2;
      Returns:
      This builder for chaining.
    • setColorBytes

      public PortTypeMetadata.Builder setColorBytes(com.google.protobuf.ByteString value)
      Display color for this port type (hex color code, e.g., "#22c55e").
      
      string color = 2;
      Parameters:
      value - The bytes for color to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDisplayName

      public PortTypeMetadata.Builder setDisplayName(String value)
      Human-readable name for this port type.
      
      string display_name = 3;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public PortTypeMetadata.Builder clearDisplayName()
      Human-readable name for this port type.
      
      string display_name = 3;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public PortTypeMetadata.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
      Human-readable name for this port type.
      
      string display_name = 3;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCompatibleFrom

      public PortTypeMetadata.Builder setCompatibleFrom(int index, PortType value)
      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;
      Parameters:
      index - The index to set the value at.
      value - The compatibleFrom to set.
      Returns:
      This builder for chaining.
    • addCompatibleFrom

      public PortTypeMetadata.Builder addCompatibleFrom(PortType value)
      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;
      Parameters:
      value - The compatibleFrom to add.
      Returns:
      This builder for chaining.
    • addAllCompatibleFrom

      public PortTypeMetadata.Builder addAllCompatibleFrom(Iterable<? extends PortType> values)
      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;
      Parameters:
      values - The compatibleFrom to add.
      Returns:
      This builder for chaining.
    • clearCompatibleFrom

      public PortTypeMetadata.Builder clearCompatibleFrom()
      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;
      Returns:
      This builder for chaining.
    • 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.
    • setCompatibleFromValue

      public PortTypeMetadata.Builder setCompatibleFromValue(int index, int value)
      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;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for compatibleFrom to set.
      Returns:
      This builder for chaining.
    • addCompatibleFromValue

      public PortTypeMetadata.Builder addCompatibleFromValue(int value)
      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;
      Parameters:
      value - The enum numeric value on the wire for compatibleFrom to add.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • addAllCompatibleFromValue

      public PortTypeMetadata.Builder addAllCompatibleFromValue(Iterable<Integer> values)
      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;
      Parameters:
      values - The enum numeric values on the wire for compatibleFrom to add.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • 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.
    • setHandleShapeValue

      public PortTypeMetadata.Builder setHandleShapeValue(int value)
      Shape of the handle for this port type in the visual editor.
      
      .soulfire.v1.HandleShape handle_shape = 5;
      Parameters:
      value - The enum numeric value on the wire for handleShape to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • 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.
    • setHandleShape

      public PortTypeMetadata.Builder setHandleShape(HandleShape value)
      Shape of the handle for this port type in the visual editor.
      
      .soulfire.v1.HandleShape handle_shape = 5;
      Parameters:
      value - The handleShape to set.
      Returns:
      This builder for chaining.
    • clearHandleShape

      public PortTypeMetadata.Builder clearHandleShape()
      Shape of the handle for this port type in the visual editor.
      
      .soulfire.v1.HandleShape handle_shape = 5;
      Returns:
      This builder for chaining.
    • 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.
    • setEdgeStyleValue

      public PortTypeMetadata.Builder setEdgeStyleValue(int value)
      Visual style for edges of this port type.
      
      .soulfire.v1.EdgeStyle edge_style = 6;
      Parameters:
      value - The enum numeric value on the wire for edgeStyle to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • 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.
    • setEdgeStyle

      public PortTypeMetadata.Builder setEdgeStyle(EdgeStyle value)
      Visual style for edges of this port type.
      
      .soulfire.v1.EdgeStyle edge_style = 6;
      Parameters:
      value - The edgeStyle to set.
      Returns:
      This builder for chaining.
    • clearEdgeStyle

      public PortTypeMetadata.Builder clearEdgeStyle()
      Visual style for edges of this port type.
      
      .soulfire.v1.EdgeStyle edge_style = 6;
      Returns:
      This builder for chaining.