final case class FieldOptions(type: Option[String] = _root_.scala.None, scalaName: Option[String] = _root_.scala.None, collectionType: Option[String] = _root_.scala.None, collection: Option[Collection] = _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, noDefaultValueInConstructor: Option[Boolean] = _root_.scala.None, noBox: Option[Boolean] = _root_.scala.None, required: Option[Boolean] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[FieldOptions] with ExtendableMessage[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 to scala.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 to scala.collection.immutable.Map

noDefaultValueInConstructor

If true, no default value will be generated for this field in the message constructor. If this field is set, it has the highest precedence and overrides the values at the message-level and file-level.

noBox

Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box

required

Like no_box it does not box a value in Option[T], but also fails parsing when a value is not provided. This enables to emulate required fields in proto3.

Annotations
@SerialVersionUID()
Linear Supertypes
ExtendableMessage[FieldOptions], Updatable[FieldOptions], GeneratedMessage, Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FieldOptions
  2. ExtendableMessage
  3. Updatable
  4. GeneratedMessage
  5. Serializable
  6. Serializable
  7. Product
  8. Equals
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FieldOptions(type: Option[String] = _root_.scala.None, scalaName: Option[String] = _root_.scala.None, collectionType: Option[String] = _root_.scala.None, collection: Option[Collection] = _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, noDefaultValueInConstructor: Option[Boolean] = _root_.scala.None, noBox: Option[Boolean] = _root_.scala.None, required: Option[Boolean] = _root_.scala.None, unknownFields: UnknownFieldSet = ...)

    collectionType

    Can be specified only if this field is repeated. If unspecified, it falls back to the file option named collection_type, which defaults to scala.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 to scala.collection.immutable.Map

    noDefaultValueInConstructor

    If true, no default value will be generated for this field in the message constructor. If this field is set, it has the highest precedence and overrides the values at the message-level and file-level.

    noBox

    Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box

    required

    Like no_box it does not box a value in Option[T], but also fails parsing when a value is not provided. This enables to emulate required fields in proto3.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllAnnotations(__vs: Iterable[String]): FieldOptions
  5. def addAnnotations(__vs: String*): FieldOptions
  6. val annotations: Seq[String]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clearAnnotations: FieldOptions
  9. def clearCollection: FieldOptions
  10. def clearCollectionType: FieldOptions
  11. def clearKeyType: FieldOptions
  12. def clearMapType: FieldOptions
  13. def clearNoBox: FieldOptions
  14. def clearNoDefaultValueInConstructor: FieldOptions
  15. def clearRequired: FieldOptions
  16. def clearScalaName: FieldOptions
  17. def clearType: FieldOptions
  18. def clearValueType: FieldOptions
  19. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  20. val collection: Option[Collection]
  21. val collectionType: Option[String]
  22. def companion: FieldOptions.type
    Definition Classes
    FieldOptionsGeneratedMessage
  23. def discardUnknownFields: FieldOptions
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def extension[T](generatedExtension: GeneratedExtension[FieldOptions, T]): T
    Definition Classes
    ExtendableMessage
  26. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def getCollection: Collection
  29. def getCollectionType: String
  30. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    FieldOptionsGeneratedMessage
  31. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    FieldOptionsGeneratedMessage
  32. def getKeyType: String
  33. def getMapType: String
  34. def getNoBox: Boolean
  35. def getNoDefaultValueInConstructor: Boolean
  36. def getRequired: Boolean
  37. def getScalaName: String
  38. def getType: String
  39. def getValueType: String
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. val keyType: Option[String]
  42. val mapType: Option[String]
  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. val noBox: Option[Boolean]
  45. val noDefaultValueInConstructor: Option[Boolean]
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. val required: Option[Boolean]
  49. val scalaName: Option[String]
  50. def serializedSize: Int
    Definition Classes
    FieldOptionsGeneratedMessage
  51. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  52. 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
  53. 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
  54. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  55. 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
    FieldOptionsGeneratedMessage
  56. val type: Option[String]
  57. val unknownFields: UnknownFieldSet
    Definition Classes
    FieldOptionsExtendableMessage
  58. def update(ms: (Lens[FieldOptions, FieldOptions]) ⇒ Mutation[FieldOptions]*): FieldOptions
    Definition Classes
    Updatable
  59. val valueType: Option[String]
  60. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  63. def withAnnotations(__v: Seq[String]): FieldOptions
  64. def withCollection(__v: Collection): FieldOptions
  65. def withCollectionType(__v: String): FieldOptions
  66. def withExtension[T](generatedExtension: GeneratedExtension[FieldOptions, T])(value: T): FieldOptions
    Definition Classes
    ExtendableMessage
  67. def withKeyType(__v: String): FieldOptions
  68. def withMapType(__v: String): FieldOptions
  69. def withNoBox(__v: Boolean): FieldOptions
  70. def withNoDefaultValueInConstructor(__v: Boolean): FieldOptions
  71. def withRequired(__v: Boolean): FieldOptions
  72. def withScalaName(__v: String): FieldOptions
  73. def withType(__v: String): FieldOptions
  74. def withUnknownFields(__v: UnknownFieldSet): FieldOptions
    Definition Classes
    FieldOptionsExtendableMessage
  75. def withValueType(__v: String): FieldOptions
  76. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  77. 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
    FieldOptionsGeneratedMessage
  78. 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

Inherited from Updatable[FieldOptions]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped