final case class Type(name: String = "", fields: Seq[Field] = _root_.scala.Seq.empty, oneofs: Seq[String] = _root_.scala.Seq.empty, options: Seq[OptionProto] = _root_.scala.Seq.empty, sourceContext: scala.Option[source_context.SourceContext] = _root_.scala.None, syntax: Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, unknownFields: scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends scalapb.GeneratedMessage with Updatable[Type] with Product with Serializable
A protocol buffer message type.
- name
The fully qualified message name.
- fields
The list of fields.
- oneofs
The list of types appearing in
oneof
definitions in this type.- options
The protocol buffer options.
- sourceContext
The source context.
- syntax
The source syntax.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Type
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Type(name: String = "", fields: Seq[Field] = _root_.scala.Seq.empty, oneofs: Seq[String] = _root_.scala.Seq.empty, options: Seq[OptionProto] = _root_.scala.Seq.empty, sourceContext: scala.Option[source_context.SourceContext] = _root_.scala.None, syntax: Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, unknownFields: scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)
- name
The fully qualified message name.
- fields
The list of fields.
- oneofs
The list of types appearing in
oneof
definitions in this type.- options
The protocol buffer options.
- sourceContext
The source context.
- syntax
The source syntax.
Value Members
- final def !=(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllFields(__vs: Iterable[Field]): Type
- def addAllOneofs(__vs: Iterable[String]): Type
- def addAllOptions(__vs: Iterable[OptionProto]): Type
- def addFields(__vs: Field*): Type
- def addOneofs(__vs: String*): Type
- def addOptions(__vs: OptionProto*): Type
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearFields: Type
- def clearOneofs: Type
- def clearOptions: Type
- def clearSourceContext: Type
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def companion: Type.type
- Definition Classes
- Type → GeneratedMessage
- def discardUnknownFields: Type
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val fields: Seq[Field]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- Type → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): scala.Any
- Definition Classes
- Type → GeneratedMessage
- def getSourceContext: source_context.SourceContext
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val oneofs: Seq[String]
- val options: Seq[OptionProto]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def serializedSize: Int
- Definition Classes
- Type → GeneratedMessage
- val sourceContext: scala.Option[source_context.SourceContext]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val syntax: Syntax
- 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
- Definition Classes
- 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
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
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.
- returns
human-readable representation of this message.
- Definition Classes
- Type → GeneratedMessage
- val unknownFields: scalapb.UnknownFieldSet
- def update(ms: (Lens[Type, Type]) => Mutation[Type]*): Type
- Definition Classes
- Updatable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withFields(__v: Seq[Field]): Type
- def withName(__v: String): Type
- def withOneofs(__v: Seq[String]): Type
- def withOptions(__v: Seq[OptionProto]): Type
- def withSourceContext(__v: source_context.SourceContext): Type
- def withSyntax(__v: Syntax): Type
- def withUnknownFields(__v: scalapb.UnknownFieldSet): Type
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
Serializes the message into the given coded output stream
Serializes the message into the given coded output stream
- Definition Classes
- Type → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
Serializes the message into the given output stream
Serializes the message into the given output stream
- Definition Classes
- GeneratedMessage