final case class FieldDescriptorProto(name: scala.Option[String] = None, number: scala.Option[Int] = None, label: scala.Option[Label] = None, type: scala.Option[FieldDescriptorProto.Type] = None, typeName: scala.Option[String] = None, extendee: scala.Option[String] = None, defaultValue: scala.Option[String] = None, oneofIndex: scala.Option[Int] = None, jsonName: scala.Option[String] = None, options: scala.Option[FieldOptions] = None) extends trueaccord.scalapb.GeneratedMessage with trueaccord.scalapb.Message[FieldDescriptorProto] with Updatable[FieldDescriptorProto] with Product with Serializable

Describes a field within a message.

type

If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.

typeName

For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace).

extendee

For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name.

defaultValue

For numeric types, contains the original text representation of the value. For booleans, "true" or "false". For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped. TODO(kenton): Base-64 encode?

oneofIndex

If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof.

jsonName

JSON name of this field. The value is set by protocol compiler. If the user has set a "json_name" option on this field, that option's value will be used. Otherwise, it's deduced from the field's name by converting it to camelCase.

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

Instance Constructors

  1. new FieldDescriptorProto(name: scala.Option[String] = None, number: scala.Option[Int] = None, label: scala.Option[Label] = None, type: scala.Option[FieldDescriptorProto.Type] = None, typeName: scala.Option[String] = None, extendee: scala.Option[String] = None, defaultValue: scala.Option[String] = None, oneofIndex: scala.Option[Int] = None, jsonName: scala.Option[String] = None, options: scala.Option[FieldOptions] = None)

    type

    If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.

    typeName

    For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace).

    extendee

    For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name.

    defaultValue

    For numeric types, contains the original text representation of the value. For booleans, "true" or "false". For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped. TODO(kenton): Base-64 encode?

    oneofIndex

    If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof.

    jsonName

    JSON name of this field. The value is set by protocol compiler. If the user has set a "json_name" option on this field, that option's value will be used. Otherwise, it's deduced from the field's name by converting it to camelCase.

Value Members

  1. final def !=(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clearDefaultValue: FieldDescriptorProto
  6. def clearExtendee: FieldDescriptorProto
  7. def clearJsonName: FieldDescriptorProto
  8. def clearLabel: FieldDescriptorProto
  9. def clearName: FieldDescriptorProto
  10. def clearNumber: FieldDescriptorProto
  11. def clearOneofIndex: FieldDescriptorProto
  12. def clearOptions: FieldDescriptorProto
  13. def clearType: FieldDescriptorProto
  14. def clearTypeName: FieldDescriptorProto
  15. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def companion: FieldDescriptorProto.type
    Definition Classes
    FieldDescriptorProtoGeneratedMessage
  17. val defaultValue: scala.Option[String]
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. val extendee: scala.Option[String]
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. def getDefaultValue: String
  23. def getExtendee: String
  24. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    FieldDescriptorProtoGeneratedMessage
  25. def getFieldByNumber(__fieldNumber: Int): scala.Any
    Definition Classes
    FieldDescriptorProtoGeneratedMessage
  26. def getJsonName: String
  27. def getLabel: Label
  28. def getName: String
  29. def getNumber: Int
  30. def getOneofIndex: Int
  31. def getOptions: FieldOptions
  32. def getType: FieldDescriptorProto.Type
  33. def getTypeName: String
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. val jsonName: scala.Option[String]
  36. val label: scala.Option[Label]
  37. def mergeFrom(_input__: CodedInputStream): FieldDescriptorProto
    Definition Classes
    FieldDescriptorProtoMessage
  38. val name: scala.Option[String]
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  42. val number: scala.Option[Int]
  43. val oneofIndex: scala.Option[Int]
  44. val options: scala.Option[FieldOptions]
  45. final def serializedSize: Int
    Definition Classes
    FieldDescriptorProtoGeneratedMessage
  46. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  47. def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  48. def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  49. def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  50. def toString(): String
    Definition Classes
    FieldDescriptorProto → AnyRef → Any
  51. val type: scala.Option[FieldDescriptorProto.Type]
  52. val typeName: scala.Option[String]
  53. def update(ms: (Lens[FieldDescriptorProto, FieldDescriptorProto]) ⇒ Mutation[FieldDescriptorProto]*): FieldDescriptorProto
    Definition Classes
    Updatable
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def withDefaultValue(__v: String): FieldDescriptorProto
  58. def withExtendee(__v: String): FieldDescriptorProto
  59. def withJsonName(__v: String): FieldDescriptorProto
  60. def withLabel(__v: Label): FieldDescriptorProto
  61. def withName(__v: String): FieldDescriptorProto
  62. def withNumber(__v: Int): FieldDescriptorProto
  63. def withOneofIndex(__v: Int): FieldDescriptorProto
  64. def withOptions(__v: FieldOptions): FieldDescriptorProto
  65. def withType(__v: FieldDescriptorProto.Type): FieldDescriptorProto
  66. def withTypeName(__v: String): FieldDescriptorProto
  67. def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  68. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    FieldDescriptorProtoGeneratedMessage
  69. def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, scala.Any]
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. 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

Inherited from Product

Inherited from Equals

Inherited from Updatable[FieldDescriptorProto]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from scala.Any

Ungrouped