Diagnostic

pulumirpc.codegen.hcl.Diagnostic
See theDiagnostic companion object
final case class Diagnostic(severity: DiagnosticSeverity, summary: String, detail: String, subject: Option[Range], context: Option[Range], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Diagnostic]

Diagnostic represents information to be presented to a user about an error or anomaly in parsing or evaluating configuration.

Value parameters

subject

Subject and Context are both source ranges relating to the diagnostic. Subject is a tight range referring to exactly the construct that is problematic, while Context is an optional broader range (which should fully contain Subject) that ought to be shown around Subject when generating isolated source-code snippets in diagnostic messages. If Context is nil, the Subject is also the Context. Some diagnostics have no source ranges at all. If Context is set then Subject should always also be set.

summary

Summary and Detail contain the English-language description of the problem. Summary is a terse description of the general problem and detail is a more elaborate, often-multi-sentence description of the problem and what might be done to solve it.

Attributes

Companion
object
Graph
Supertypes
trait Updatable[Diagnostic]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def companion: Diagnostic.type
def getField(`__field`: FieldDescriptor): PValue
def getFieldByNumber(`__fieldNumber`: Int): Any
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

def withUnknownFields(`__v`: UnknownFieldSet): Diagnostic
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
def update(ms: (Lens[Diagnostic, Diagnostic]) => () => Diagnostic*): Diagnostic

Attributes

Inherited from:
Updatable
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage