Class ValidationDiagnostic.Builder

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

public static final class ValidationDiagnostic.Builder extends com.google.protobuf.GeneratedMessage.Builder<ValidationDiagnostic.Builder> implements ValidationDiagnosticOrBuilder
A structured validation diagnostic with node/edge context and severity.
Protobuf type soulfire.v1.ValidationDiagnostic
  • 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<ValidationDiagnostic.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<ValidationDiagnostic.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<ValidationDiagnostic.Builder>
    • getDefaultInstanceForType

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

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

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

      public ValidationDiagnostic.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<ValidationDiagnostic.Builder>
    • mergeFrom

    • isInitialized

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

      public ValidationDiagnostic.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<ValidationDiagnostic.Builder>
      Throws:
      IOException
    • getNodeId

      public String getNodeId()
      The node related to this diagnostic, or empty for graph-level issues.
      
      string node_id = 1;
      Specified by:
      getNodeId in interface ValidationDiagnosticOrBuilder
      Returns:
      The nodeId.
    • getNodeIdBytes

      public com.google.protobuf.ByteString getNodeIdBytes()
      The node related to this diagnostic, or empty for graph-level issues.
      
      string node_id = 1;
      Specified by:
      getNodeIdBytes in interface ValidationDiagnosticOrBuilder
      Returns:
      The bytes for nodeId.
    • setNodeId

      public ValidationDiagnostic.Builder setNodeId(String value)
      The node related to this diagnostic, or empty for graph-level issues.
      
      string node_id = 1;
      Parameters:
      value - The nodeId to set.
      Returns:
      This builder for chaining.
    • clearNodeId

      public ValidationDiagnostic.Builder clearNodeId()
      The node related to this diagnostic, or empty for graph-level issues.
      
      string node_id = 1;
      Returns:
      This builder for chaining.
    • setNodeIdBytes

      public ValidationDiagnostic.Builder setNodeIdBytes(com.google.protobuf.ByteString value)
      The node related to this diagnostic, or empty for graph-level issues.
      
      string node_id = 1;
      Parameters:
      value - The bytes for nodeId to set.
      Returns:
      This builder for chaining.
    • getEdgeId

      public String getEdgeId()
      A composite edge key related to this diagnostic, or empty.
      
      string edge_id = 2;
      Specified by:
      getEdgeId in interface ValidationDiagnosticOrBuilder
      Returns:
      The edgeId.
    • getEdgeIdBytes

      public com.google.protobuf.ByteString getEdgeIdBytes()
      A composite edge key related to this diagnostic, or empty.
      
      string edge_id = 2;
      Specified by:
      getEdgeIdBytes in interface ValidationDiagnosticOrBuilder
      Returns:
      The bytes for edgeId.
    • setEdgeId

      public ValidationDiagnostic.Builder setEdgeId(String value)
      A composite edge key related to this diagnostic, or empty.
      
      string edge_id = 2;
      Parameters:
      value - The edgeId to set.
      Returns:
      This builder for chaining.
    • clearEdgeId

      public ValidationDiagnostic.Builder clearEdgeId()
      A composite edge key related to this diagnostic, or empty.
      
      string edge_id = 2;
      Returns:
      This builder for chaining.
    • setEdgeIdBytes

      public ValidationDiagnostic.Builder setEdgeIdBytes(com.google.protobuf.ByteString value)
      A composite edge key related to this diagnostic, or empty.
      
      string edge_id = 2;
      Parameters:
      value - The bytes for edgeId to set.
      Returns:
      This builder for chaining.
    • getMessage

      public String getMessage()
      Human-readable description of the issue.
      
      string message = 3;
      Specified by:
      getMessage in interface ValidationDiagnosticOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
      Human-readable description of the issue.
      
      string message = 3;
      Specified by:
      getMessageBytes in interface ValidationDiagnosticOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public ValidationDiagnostic.Builder setMessage(String value)
      Human-readable description of the issue.
      
      string message = 3;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public ValidationDiagnostic.Builder clearMessage()
      Human-readable description of the issue.
      
      string message = 3;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public ValidationDiagnostic.Builder setMessageBytes(com.google.protobuf.ByteString value)
      Human-readable description of the issue.
      
      string message = 3;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • getSeverityValue

      public int getSeverityValue()
      Severity level of this diagnostic.
      
      .soulfire.v1.DiagnosticSeverity severity = 4;
      Specified by:
      getSeverityValue in interface ValidationDiagnosticOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • setSeverityValue

      public ValidationDiagnostic.Builder setSeverityValue(int value)
      Severity level of this diagnostic.
      
      .soulfire.v1.DiagnosticSeverity severity = 4;
      Parameters:
      value - The enum numeric value on the wire for severity to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • getSeverity

      public DiagnosticSeverity getSeverity()
      Severity level of this diagnostic.
      
      .soulfire.v1.DiagnosticSeverity severity = 4;
      Specified by:
      getSeverity in interface ValidationDiagnosticOrBuilder
      Returns:
      The severity.
    • setSeverity

      Severity level of this diagnostic.
      
      .soulfire.v1.DiagnosticSeverity severity = 4;
      Parameters:
      value - The severity to set.
      Returns:
      This builder for chaining.
    • clearSeverity

      public ValidationDiagnostic.Builder clearSeverity()
      Severity level of this diagnostic.
      
      .soulfire.v1.DiagnosticSeverity severity = 4;
      Returns:
      This builder for chaining.