final case class FieldOptions(type: Option[String] = _root_.scala.None, scalaName: Option[String] = _root_.scala.None, collectionType: Option[String] = _root_.scala.None, keyType: Option[String] = _root_.scala.None, valueType: Option[String] = _root_.scala.None, annotations: Seq[String] = _root_.scala.Seq.empty, mapType: Option[String] = _root_.scala.None, noBox: Option[Boolean] = _root_.scala.None) extends GeneratedMessage with Message[FieldOptions] with Updatable[FieldOptions] with Product with Serializable
- collectionType
Can be specified only if this field is repeated. If unspecified, it falls back to the file option named
collection_type
, which defaults toscala.collection.Seq
.- keyType
If the field is a map, you can specify custom Scala types for the key or value.
- annotations
Custom annotations to add to the field.
- mapType
Can be specified only if this field is a map. If unspecified, it falls back to the file option named
map_type
which defaults toscala.collection.immutable.Map
- noBox
Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- FieldOptions
- Product
- Equals
- Updatable
- Message
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
FieldOptions(type: Option[String] = _root_.scala.None, scalaName: Option[String] = _root_.scala.None, collectionType: Option[String] = _root_.scala.None, keyType: Option[String] = _root_.scala.None, valueType: Option[String] = _root_.scala.None, annotations: Seq[String] = _root_.scala.Seq.empty, mapType: Option[String] = _root_.scala.None, noBox: Option[Boolean] = _root_.scala.None)
- collectionType
Can be specified only if this field is repeated. If unspecified, it falls back to the file option named
collection_type
, which defaults toscala.collection.Seq
.- keyType
If the field is a map, you can specify custom Scala types for the key or value.
- annotations
Custom annotations to add to the field.
- mapType
Can be specified only if this field is a map. If unspecified, it falls back to the file option named
map_type
which defaults toscala.collection.immutable.Map
- noBox
Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
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 addAllAnnotations(__vs: Iterable[String]): FieldOptions
- def addAnnotations(__vs: String*): FieldOptions
- val annotations: Seq[String]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearAnnotations: FieldOptions
- def clearCollectionType: FieldOptions
- def clearKeyType: FieldOptions
- def clearMapType: FieldOptions
- def clearNoBox: FieldOptions
- def clearScalaName: FieldOptions
- def clearType: FieldOptions
- def clearValueType: FieldOptions
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val collectionType: Option[String]
-
def
companion: FieldOptions.type
- Definition Classes
- FieldOptions → GeneratedMessage
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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 getCollectionType: String
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- FieldOptions → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- FieldOptions → GeneratedMessage
- def getKeyType: String
- def getMapType: String
- def getNoBox: Boolean
- def getScalaName: String
- def getType: String
- def getValueType: String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val keyType: Option[String]
- val mapType: Option[String]
-
def
mergeFrom(_input__: CodedInputStream): FieldOptions
- Definition Classes
- FieldOptions → Message
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noBox: Option[Boolean]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val scalaName: Option[String]
-
final
def
serializedSize: Int
- Definition Classes
- FieldOptions → GeneratedMessage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
- FieldOptions → GeneratedMessage
- val type: Option[String]
-
def
update(ms: (Lens[FieldOptions, FieldOptions]) ⇒ Mutation[FieldOptions]*): FieldOptions
- Definition Classes
- Updatable
- val valueType: Option[String]
-
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 withAnnotations(__v: Seq[String]): FieldOptions
- def withCollectionType(__v: String): FieldOptions
- def withKeyType(__v: String): FieldOptions
- def withMapType(__v: String): FieldOptions
- def withNoBox(__v: Boolean): FieldOptions
- def withScalaName(__v: String): FieldOptions
- def withType(__v: String): FieldOptions
- def withValueType(__v: String): FieldOptions
-
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- FieldOptions → 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