final case class Type(name: String = "", fields: Seq[Field] = _root_.scala.collection.Seq.empty, oneofs: Seq[String] = _root_.scala.collection.Seq.empty, options: Seq[OptionProto] = _root_.scala.collection.Seq.empty, sourceContext: Option[SourceContext] = 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()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Type
- Product
- Equals
- Updatable
- Message
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Type(name: String = "", fields: Seq[Field] = _root_.scala.collection.Seq.empty, oneofs: Seq[String] = _root_.scala.collection.Seq.empty, options: Seq[OptionProto] = _root_.scala.collection.Seq.empty, sourceContext: Option[SourceContext] = 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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllFields(__vs: TraversableOnce[Field]): Type
- def addAllOneofs(__vs: TraversableOnce[String]): Type
- def addAllOptions(__vs: TraversableOnce[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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- Type → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Type → GeneratedMessage
- def getSourceContext: 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
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val oneofs: Seq[String]
- val options: Seq[OptionProto]
-
final
def
serializedSize: Int
- Definition Classes
- Type → GeneratedMessage
- val sourceContext: Option[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
toString(): String
- Definition Classes
- Type → AnyRef → Any
-
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( ... )
- 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: 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, Any]
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use toPMessage
-
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