com.google.protobuf.compiler.plugin

CodeGeneratorResponse

final case class CodeGeneratorResponse(error: Option[String] = scala.None, file: Seq[File] = scala.collection.Seq.empty[Nothing]) extends trueaccord.scalapb.GeneratedMessage with trueaccord.scalapb.Message[CodeGeneratorResponse] with Updatable[CodeGeneratorResponse] with Product with Serializable

The plugin writes an encoded CodeGeneratorResponse to stdout.

error

Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way.

This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.

Annotations
@SerialVersionUID( 0L )
Linear Supertypes
Product, Equals, Updatable[CodeGeneratorResponse], trueaccord.scalapb.Message[CodeGeneratorResponse], trueaccord.scalapb.GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CodeGeneratorResponse
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CodeGeneratorResponse(error: Option[String] = scala.None, file: Seq[File] = scala.collection.Seq.empty[Nothing])

    error

    Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way.

    This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addAllFile(__vs: TraversableOnce[File]): CodeGeneratorResponse

  7. def addFile(__vs: File*): CodeGeneratorResponse

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clearError: CodeGeneratorResponse

  10. def clearFile: CodeGeneratorResponse

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def companion: CodeGeneratorResponse.type

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. val error: Option[String]

    Error message.

    Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way.

    This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.

  15. val file: Seq[File]

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def getAllFields: Map[FieldDescriptor, Any]

    Definition Classes
    GeneratedMessage
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def getError: String

  20. def getField(__field: FieldDescriptor): PValue

  21. def getField(field: FieldDescriptor): Any

    Definition Classes
    GeneratedMessage
  22. def getFieldByNumber(__fieldNumber: Int): Any

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def mergeFrom(_input__: CodedInputStream): CodeGeneratorResponse

    Definition Classes
    CodeGeneratorResponseMessage
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. final def serializedSize: Int

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toByteArray: Array[Byte]

    Definition Classes
    GeneratedMessage
  31. def toByteString: ByteString

    Definition Classes
    GeneratedMessage
  32. def toPMessage: PMessage

    Definition Classes
    GeneratedMessage
  33. def toString(): String

    Definition Classes
    CodeGeneratorResponse → AnyRef → Any
  34. def update(ms: (Lens[CodeGeneratorResponse, CodeGeneratorResponse]) ⇒ (CodeGeneratorResponse) ⇒ CodeGeneratorResponse*): CodeGeneratorResponse

    Definition Classes
    Updatable
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withError(__v: String): CodeGeneratorResponse

  39. def withFile(__v: Seq[File]): CodeGeneratorResponse

  40. def writeDelimitedTo(output: OutputStream): Unit

    Definition Classes
    GeneratedMessage
  41. def writeTo(_output__: CodedOutputStream): Unit

  42. def writeTo(output: OutputStream): Unit

    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[CodeGeneratorResponse]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped