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 Summary
Modifier and TypeMethodDescriptionaddAllCompatibleFrom(Iterable<? extends PortType> values) List of port types that can be implicitly converted to this type.addAllCompatibleFromValue(Iterable<Integer> values) List of port types that can be implicitly converted to this type.addCompatibleFrom(PortType value) List of port types that can be implicitly converted to this type.addCompatibleFromValue(int value) List of port types that can be implicitly converted to this type.build()clear()Display color for this port type (hex color code, e.g., "#22c55e").List of port types that can be implicitly converted to this type.Human-readable name for this port type.Visual style for edges of this port type.Shape of the handle for this port type in the visual editor.The port type this metadata applies to.getColor()Display color for this port type (hex color code, e.g., "#22c55e").com.google.protobuf.ByteStringDisplay color for this port type (hex color code, e.g., "#22c55e").getCompatibleFrom(int index) List of port types that can be implicitly converted to this type.intList of port types that can be implicitly converted to this type.List of port types that can be implicitly converted to this type.intgetCompatibleFromValue(int index) List of port types that can be implicitly converted to this type.List of port types that can be implicitly converted to this type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorHuman-readable name for this port type.com.google.protobuf.ByteStringHuman-readable name for this port type.Visual style for edges of this port type.intVisual style for edges of this port type.Shape of the handle for this port type in the visual editor.intShape of the handle for this port type in the visual editor.The port type this metadata applies to.intThe port type this metadata applies to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(PortTypeMetadata other) Display color for this port type (hex color code, e.g., "#22c55e").setColorBytes(com.google.protobuf.ByteString value) Display color for this port type (hex color code, e.g., "#22c55e").setCompatibleFrom(int index, PortType value) List of port types that can be implicitly converted to this type.setCompatibleFromValue(int index, int value) List of port types that can be implicitly converted to this type.setDisplayName(String value) Human-readable name for this port type.setDisplayNameBytes(com.google.protobuf.ByteString value) Human-readable name for this port type.setEdgeStyle(EdgeStyle value) Visual style for edges of this port type.setEdgeStyleValue(int value) Visual style for edges of this port type.setHandleShape(HandleShape value) Shape of the handle for this port type in the visual editor.setHandleShapeValue(int value) Shape of the handle for this port type in the visual editor.setPortType(PortType value) The port type this metadata applies to.setPortTypeValue(int value) The port type this metadata applies to.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 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<PortTypeMetadata.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<PortTypeMetadata.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<PortTypeMetadata.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<PortTypeMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getPortTypeValuein interfacePortTypeMetadataOrBuilder- Returns:
- The enum numeric value on the wire for portType.
-
setPortTypeValue
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
The port type this metadata applies to.
.soulfire.v1.PortType port_type = 1;- Specified by:
getPortTypein interfacePortTypeMetadataOrBuilder- Returns:
- The portType.
-
setPortType
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
The port type this metadata applies to.
.soulfire.v1.PortType port_type = 1;- Returns:
- This builder for chaining.
-
getColor
Display color for this port type (hex color code, e.g., "#22c55e").
string color = 2;- Specified by:
getColorin interfacePortTypeMetadataOrBuilder- 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:
getColorBytesin interfacePortTypeMetadataOrBuilder- Returns:
- The bytes for color.
-
setColor
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
Display color for this port type (hex color code, e.g., "#22c55e").
string color = 2;- Returns:
- This builder for chaining.
-
setColorBytes
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
Human-readable name for this port type.
string display_name = 3;- Specified by:
getDisplayNamein interfacePortTypeMetadataOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Human-readable name for this port type.
string display_name = 3;- Specified by:
getDisplayNameBytesin interfacePortTypeMetadataOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Human-readable name for this port type.
string display_name = 3;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Human-readable name for this port type.
string display_name = 3;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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
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:
getCompatibleFromListin interfacePortTypeMetadataOrBuilder- 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:
getCompatibleFromCountin interfacePortTypeMetadataOrBuilder- Returns:
- The count of compatibleFrom.
-
getCompatibleFrom
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:
getCompatibleFromin interfacePortTypeMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The compatibleFrom at the given index.
-
setCompatibleFrom
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
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
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
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
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:
getCompatibleFromValueListin interfacePortTypeMetadataOrBuilder- 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:
getCompatibleFromValuein interfacePortTypeMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of compatibleFrom at the given index.
-
setCompatibleFromValue
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
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
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:
getHandleShapeValuein interfacePortTypeMetadataOrBuilder- Returns:
- The enum numeric value on the wire for handleShape.
-
setHandleShapeValue
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
Shape of the handle for this port type in the visual editor.
.soulfire.v1.HandleShape handle_shape = 5;- Specified by:
getHandleShapein interfacePortTypeMetadataOrBuilder- Returns:
- The handleShape.
-
setHandleShape
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
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:
getEdgeStyleValuein interfacePortTypeMetadataOrBuilder- Returns:
- The enum numeric value on the wire for edgeStyle.
-
setEdgeStyleValue
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
Visual style for edges of this port type.
.soulfire.v1.EdgeStyle edge_style = 6;- Specified by:
getEdgeStylein interfacePortTypeMetadataOrBuilder- Returns:
- The edgeStyle.
-
setEdgeStyle
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
Visual style for edges of this port type.
.soulfire.v1.EdgeStyle edge_style = 6;- Returns:
- This builder for chaining.
-