Trait/Object

com.gu.contentapi.client.model.v1

Block

Related Docs: object Block | package v1

Permalink

trait Block extends ThriftStruct with Product14[String, String, String, Option[String], BlockAttributes, Boolean, Option[CapiDateTime], Option[CapiDateTime], Option[CapiDateTime], Option[CapiDateTime], Seq[String], Option[User], Option[User], Seq[BlockElement]] with ValidatingThriftStruct[Block] with Serializable

Prefer the companion object's com.gu.contentapi.client.model.v1.Block.apply for construction if you don't need to specify passthrough fields.

Linear Supertypes
Serializable, ValidatingThriftStruct[Block], HasThriftStructCodec3[Block], Product14[String, String, String, Option[String], BlockAttributes, Boolean, Option[CapiDateTime], Option[CapiDateTime], Option[CapiDateTime], Option[CapiDateTime], Seq[String], Option[User], Option[User], Seq[BlockElement]], Product, Equals, ThriftStruct, ThriftStructIface, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Block
  2. Serializable
  3. ValidatingThriftStruct
  4. HasThriftStructCodec3
  5. Product14
  6. Product
  7. Equals
  8. ThriftStruct
  9. ThriftStructIface
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def attributes: BlockAttributes

    Permalink
  2. abstract def bodyHtml: String

    Permalink
  3. abstract def bodyTextSummary: String

    Permalink
  4. abstract def contributors: Seq[String]

    Permalink
  5. abstract def createdBy: Option[User]

    Permalink
  6. abstract def createdDate: Option[CapiDateTime]

    Permalink
  7. abstract def elements: Seq[BlockElement]

    Permalink
  8. abstract def firstPublishedDate: Option[CapiDateTime]

    Permalink
  9. abstract def id: String

    Permalink
  10. abstract def lastModifiedBy: Option[User]

    Permalink
  11. abstract def lastModifiedDate: Option[CapiDateTime]

    Permalink
  12. abstract def published: Boolean

    Permalink
  13. abstract def publishedDate: Option[CapiDateTime]

    Permalink
  14. abstract def title: Option[String]

    Permalink

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def _1: String

    Permalink
    Definition Classes
    Block → Product14
  5. def _10: Option[CapiDateTime]

    Permalink
    Definition Classes
    Block → Product14
  6. def _11: Seq[String]

    Permalink
    Definition Classes
    Block → Product14
  7. def _12: Option[User]

    Permalink
    Definition Classes
    Block → Product14
  8. def _13: Option[User]

    Permalink
    Definition Classes
    Block → Product14
  9. def _14: Seq[BlockElement]

    Permalink
    Definition Classes
    Block → Product14
  10. def _2: String

    Permalink
    Definition Classes
    Block → Product14
  11. def _3: String

    Permalink
    Definition Classes
    Block → Product14
  12. def _4: Option[String]

    Permalink
    Definition Classes
    Block → Product14
  13. def _5: BlockAttributes

    Permalink
    Definition Classes
    Block → Product14
  14. def _6: Boolean

    Permalink
    Definition Classes
    Block → Product14
  15. def _7: Option[CapiDateTime]

    Permalink
    Definition Classes
    Block → Product14
  16. def _8: Option[CapiDateTime]

    Permalink
    Definition Classes
    Block → Product14
  17. def _9: Option[CapiDateTime]

    Permalink
    Definition Classes
    Block → Product14
  18. def _codec: ValidatingThriftStructCodec3[Block]

    Permalink
    Definition Classes
    Block → ValidatingThriftStruct → HasThriftStructCodec3
  19. def _passthroughFields: Map[Short, TFieldBlob]

    Permalink
  20. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  21. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Block → Equals
  22. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def copy(id: String = this.id, bodyHtml: String = this.bodyHtml, bodyTextSummary: String = this.bodyTextSummary, title: Option[String] = this.title, attributes: BlockAttributes = this.attributes, published: Boolean = this.published, createdDate: Option[CapiDateTime] = this.createdDate, firstPublishedDate: Option[CapiDateTime] = this.firstPublishedDate, publishedDate: Option[CapiDateTime] = this.publishedDate, lastModifiedDate: Option[CapiDateTime] = this.lastModifiedDate, contributors: Seq[String] = this.contributors, createdBy: Option[User] = this.createdBy, lastModifiedBy: Option[User] = this.lastModifiedBy, elements: Seq[BlockElement] = this.elements, _passthroughFields: Map[Short, TFieldBlob] = this._passthroughFields): Block

    Permalink
  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Block → Equals → AnyRef → Any
  26. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def getFieldBlob(_fieldId: Short): Option[TFieldBlob]

    Permalink

    Gets a field value encoded as a binary blob using TCompactProtocol.

    Gets a field value encoded as a binary blob using TCompactProtocol. If the specified field is present in the passthrough map, that value is returned. Otherwise, if the specified field is known and not optional and set to None, then the field is serialized and returned.

  29. def getFieldBlobs(ids: TraversableOnce[Short]): Map[Short, TFieldBlob]

    Permalink

    Collects TCompactProtocol-encoded field values according to getFieldBlob into a map.

  30. def hashCode(): Int

    Permalink
    Definition Classes
    Block → AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. def newBuilder(): StructBuilder[Block]

    Permalink
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. def productArity: Int

    Permalink
    Definition Classes
    Product14 → Product
  37. def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product14 → Product
    Annotations
    @throws( ... )
  38. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  39. def productPrefix: String

    Permalink
    Definition Classes
    Block → Product
  40. def setField(_blob: TFieldBlob): Block

    Permalink

    Sets a field using a TCompactProtocol-encoded binary blob.

    Sets a field using a TCompactProtocol-encoded binary blob. If the field is a known field, the blob is decoded and the field is set to the decoded value. If the field is unknown and passthrough fields are enabled, then the blob will be stored in _passthroughFields.

  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def toString(): String

    Permalink
    Definition Classes
    Block → AnyRef → Any
  43. def toTuple: (String, String, String, Option[String], BlockAttributes, Boolean, Option[CapiDateTime], Option[CapiDateTime], Option[CapiDateTime], Option[CapiDateTime], Seq[String], Option[User], Option[User], Seq[BlockElement])

    Permalink
  44. def unsetAttributes: Block

    Permalink
  45. def unsetBodyHtml: Block

    Permalink
  46. def unsetBodyTextSummary: Block

    Permalink
  47. def unsetContributors: Block

    Permalink
  48. def unsetCreatedBy: Block

    Permalink
  49. def unsetCreatedDate: Block

    Permalink
  50. def unsetElements: Block

    Permalink
  51. def unsetField(_fieldId: Short): Block

    Permalink

    If the specified field is optional, it is set to None.

    If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.

  52. def unsetFirstPublishedDate: Block

    Permalink
  53. def unsetId: Block

    Permalink

    If the specified field is optional, it is set to None.

    If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.

  54. def unsetLastModifiedBy: Block

    Permalink
  55. def unsetLastModifiedDate: Block

    Permalink
  56. def unsetPublished: Block

    Permalink
  57. def unsetPublishedDate: Block

    Permalink
  58. def unsetTitle: Block

    Permalink
  59. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. def write(_oprot: TProtocol): Unit

    Permalink
    Definition Classes
    Block → ThriftStruct

Inherited from Serializable

Inherited from ValidatingThriftStruct[Block]

Inherited from HasThriftStructCodec3[Block]

Inherited from Product14[String, String, String, Option[String], BlockAttributes, Boolean, Option[CapiDateTime], Option[CapiDateTime], Option[CapiDateTime], Option[CapiDateTime], Seq[String], Option[User], Option[User], Seq[BlockElement]]

Inherited from Product

Inherited from Equals

Inherited from ThriftStruct

Inherited from ThriftStructIface

Inherited from AnyRef

Inherited from Any

Ungrouped