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. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getError: String

  19. def getField(__field: FieldDescriptor): PValue

  20. def getFieldByNumber(__fieldNumber: Int): Any

  21. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Definition Classes
    AnyRef
  26. final def serializedSize: Int

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

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

    Definition Classes
    GeneratedMessage
  29. def toByteString: ByteString

    Definition Classes
    GeneratedMessage
  30. def toPMessage: PMessage

    Definition Classes
    GeneratedMessage
  31. def toString(): String

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

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

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

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

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

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

  38. def writeDelimitedTo(output: OutputStream): Unit

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

  40. def writeTo(output: OutputStream): Unit

    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any

    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue

Inherited from Product

Inherited from Equals

Inherited from Updatable[CodeGeneratorResponse]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped