Class/Object

com.gu.contentapi.client.model.v1.Block

Immutable

Related Docs: object Immutable | package Block

Permalink

class Immutable extends Block

The default read-only implementation of Block. You typically should not need to directly reference this class; instead, use the Block.apply method to construct new instances.

Linear Supertypes
Block, Serializable, 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, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Immutable
  2. Block
  3. Serializable
  4. Product14
  5. Product
  6. Equals
  7. ThriftStruct
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Immutable(id: String, bodyHtml: String, bodyTextSummary: String, title: Option[String] = None, attributes: BlockAttributes, published: Boolean, createdDate: Option[CapiDateTime] = None, firstPublishedDate: Option[CapiDateTime] = None, publishedDate: Option[CapiDateTime] = None, lastModifiedDate: Option[CapiDateTime] = None, contributors: Seq[String] = Seq[String](), createdBy: Option[User] = None, lastModifiedBy: Option[User] = None, elements: Seq[BlockElement] = Seq())

    Permalink
  2. new Immutable(id: String, bodyHtml: String, bodyTextSummary: String, title: Option[String], attributes: BlockAttributes, published: Boolean, createdDate: Option[CapiDateTime], firstPublishedDate: Option[CapiDateTime], publishedDate: Option[CapiDateTime], lastModifiedDate: Option[CapiDateTime], contributors: Seq[String], createdBy: Option[User], lastModifiedBy: Option[User], elements: Seq[BlockElement], _passthroughFields: Map[Short, TFieldBlob])

    Permalink

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. val _passthroughFields: Map[Short, TFieldBlob]

    Permalink
    Definition Classes
    ImmutableBlock
  19. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  20. val attributes: BlockAttributes

    Permalink
    Definition Classes
    ImmutableBlock
  21. val bodyHtml: String

    Permalink
    Definition Classes
    ImmutableBlock
  22. val bodyTextSummary: String

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. val contributors: Seq[String]

    Permalink
    Definition Classes
    ImmutableBlock
  26. 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
    Definition Classes
    Block
  27. val createdBy: Option[User]

    Permalink
    Definition Classes
    ImmutableBlock
  28. val createdDate: Option[CapiDateTime]

    Permalink
    Definition Classes
    ImmutableBlock
  29. val elements: Seq[BlockElement]

    Permalink
    Definition Classes
    ImmutableBlock
  30. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. val firstPublishedDate: Option[CapiDateTime]

    Permalink
    Definition Classes
    ImmutableBlock
  34. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  35. 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 returend. Otherwise, if the specified field is known and not optional and set to None, then the field is serialized and returned.

    Definition Classes
    Block
  36. def getFieldBlobs(ids: TraversableOnce[Short]): Map[Short, TFieldBlob]

    Permalink

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

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

    Definition Classes
    Block
  37. def hashCode(): Int

    Permalink
    Definition Classes
    Block → AnyRef → Any
  38. val id: String

    Permalink
    Definition Classes
    ImmutableBlock
  39. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  40. val lastModifiedBy: Option[User]

    Permalink
    Definition Classes
    ImmutableBlock
  41. val lastModifiedDate: Option[CapiDateTime]

    Permalink
    Definition Classes
    ImmutableBlock
  42. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  45. def productArity: Int

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

    Permalink
    Definition Classes
    Block → Product14 → Product
  47. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  48. def productPrefix: String

    Permalink
    Definition Classes
    Block → Product
  49. val published: Boolean

    Permalink
    Definition Classes
    ImmutableBlock
  50. val publishedDate: Option[CapiDateTime]

    Permalink
    Definition Classes
    ImmutableBlock
  51. 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.

    Definition Classes
    Block
  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  53. val title: Option[String]

    Permalink
    Definition Classes
    ImmutableBlock
  54. def toString(): String

    Permalink
    Definition Classes
    Block → AnyRef → Any
  55. def unsetAttributes: Block

    Permalink
    Definition Classes
    Block
  56. def unsetBodyHtml: Block

    Permalink
    Definition Classes
    Block
  57. def unsetBodyTextSummary: Block

    Permalink
    Definition Classes
    Block
  58. def unsetContributors: Block

    Permalink
    Definition Classes
    Block
  59. def unsetCreatedBy: Block

    Permalink
    Definition Classes
    Block
  60. def unsetCreatedDate: Block

    Permalink
    Definition Classes
    Block
  61. def unsetElements: Block

    Permalink
    Definition Classes
    Block
  62. 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 subtracked from the passthroughFields map, if present.

    Definition Classes
    Block
  63. def unsetFirstPublishedDate: Block

    Permalink
    Definition Classes
    Block
  64. 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 subtracked from the passthroughFields map, if present.

    Definition Classes
    Block
  65. def unsetLastModifiedBy: Block

    Permalink
    Definition Classes
    Block
  66. def unsetLastModifiedDate: Block

    Permalink
    Definition Classes
    Block
  67. def unsetPublished: Block

    Permalink
    Definition Classes
    Block
  68. def unsetPublishedDate: Block

    Permalink
    Definition Classes
    Block
  69. def unsetTitle: Block

    Permalink
    Definition Classes
    Block
  70. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    Block → ThriftStruct

Inherited from Block

Inherited from Serializable

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 AnyRef

Inherited from Any

Ungrouped