com.google.protobuf.type

Field

final case class Field(kind: Kind = ..., cardinality: Cardinality = ..., number: Int = 0, name: String = "", typeUrl: String = "", oneofIndex: Int = 0, packed: Boolean = false, options: Seq[OptionProto] = scala.collection.Seq.empty[Nothing], jsonName: String = "", defaultValue: String = "") extends trueaccord.scalapb.GeneratedMessage with trueaccord.scalapb.Message[Field] with Updatable[Field] with Product with Serializable

A single field of a message type.

kind

The field type.

cardinality

The field cardinality.

number

The field number.

name

The field name.

typeUrl

The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp".

oneofIndex

The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.

packed

Whether to use alternative packed wire representation.

options

The protocol buffer options.

jsonName

The field JSON name.

defaultValue

The string value of the default value of this field. Proto2 syntax only.

Annotations
@SerialVersionUID( 0L )
Linear Supertypes
Product, Equals, Updatable[Field], trueaccord.scalapb.Message[Field], trueaccord.scalapb.GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Field
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Field(kind: Kind = ..., cardinality: Cardinality = ..., number: Int = 0, name: String = "", typeUrl: String = "", oneofIndex: Int = 0, packed: Boolean = false, options: Seq[OptionProto] = scala.collection.Seq.empty[Nothing], jsonName: String = "", defaultValue: String = "")

    kind

    The field type.

    cardinality

    The field cardinality.

    number

    The field number.

    name

    The field name.

    typeUrl

    The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp".

    oneofIndex

    The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.

    packed

    Whether to use alternative packed wire representation.

    options

    The protocol buffer options.

    jsonName

    The field JSON name.

    defaultValue

    The string value of the default value of this field. Proto2 syntax only.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addAllOptions(__vs: TraversableOnce[OptionProto]): Field

  7. def addOptions(__vs: OptionProto*): Field

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. val cardinality: Cardinality

    The field cardinality.

  10. def clearOptions: Field

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def companion: Field.type

    Definition Classes
    FieldGeneratedMessage
  13. val defaultValue: String

    The string value of the default value of this field.

    The string value of the default value of this field. Proto2 syntax only.

  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def getField(__field: FieldDescriptor): PValue

    Definition Classes
    FieldGeneratedMessage
  18. def getFieldByNumber(__fieldNumber: Int): Any

    Definition Classes
    FieldGeneratedMessage
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. val jsonName: String

    The field JSON name.

  21. val kind: Kind

    The field type.

  22. def mergeFrom(_input__: CodedInputStream): Field

    Definition Classes
    FieldMessage
  23. val name: String

    The field name.

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. val number: Int

    The field number.

  28. val oneofIndex: Int

    The index of the field type in Type.oneofs, for message or enumeration types.

    The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.

  29. val options: Seq[OptionProto]

    The protocol buffer options.

  30. val packed: Boolean

    Whether to use alternative packed wire representation.

  31. final def serializedSize: Int

    Definition Classes
    FieldGeneratedMessage
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toByteArray: Array[Byte]

    Definition Classes
    GeneratedMessage
  34. def toByteString: ByteString

    Definition Classes
    GeneratedMessage
  35. def toPMessage: PMessage

    Definition Classes
    GeneratedMessage
  36. def toString(): String

    Definition Classes
    Field → AnyRef → Any
  37. val typeUrl: String

    The field type URL, without the scheme, for message or enumeration types.

    The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp".

  38. def update(ms: (Lens[Field, Field]) ⇒ (Field) ⇒ Field*): Field

    Definition Classes
    Updatable
  39. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def withCardinality(__v: Cardinality): Field

  43. def withDefaultValue(__v: String): Field

  44. def withJsonName(__v: String): Field

  45. def withKind(__v: Kind): Field

  46. def withName(__v: String): Field

  47. def withNumber(__v: Int): Field

  48. def withOneofIndex(__v: Int): Field

  49. def withOptions(__v: Seq[OptionProto]): Field

  50. def withPacked(__v: Boolean): Field

  51. def withTypeUrl(__v: String): Field

  52. def writeDelimitedTo(output: OutputStream): Unit

    Definition Classes
    GeneratedMessage
  53. def writeTo(_output__: CodedOutputStream): Unit

    Definition Classes
    FieldGeneratedMessage
  54. def writeTo(output: OutputStream): Unit

    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

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

Inherited from Product

Inherited from Equals

Inherited from Updatable[Field]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped