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 = ...) extends scalapb.GeneratedMessage with scalapb.Message[Type] 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
- Product
- Equals
- Updatable
- Message
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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 = ...)
- 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( ... ) @native()
-
def
companion: Type.type
- Definition Classes
- Type → GeneratedMessage
-
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[_]
- 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
- def mergeFrom(_input__: CodedInputStream): Type
- 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]
-
final
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
-
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
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
-
def
update(ms: (Lens[Type, Type]) ⇒ Mutation[Type]*): Type
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @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
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Type → GeneratedMessage
-
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
-
def
getAllFields: Map[FieldDescriptor, scala.Any]
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use toPMessage
-
def
getField(field: FieldDescriptor): scala.Any
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue