com.gu.contentapi.client.model.v1.Content

Immutable

class Immutable extends Content

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

Linear Supertypes
Content, Serializable, Product16[String, ContentType, Option[String], Option[String], Option[CapiDateTime], String, String, String, Option[ContentFields], Seq[Tag], Option[Seq[Element]], Seq[Reference], Option[Boolean], Option[Blocks], Option[Rights], Option[Crossword]], Product, Equals, ThriftStruct, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Immutable
  2. Content
  3. Serializable
  4. Product16
  5. Product
  6. Equals
  7. ThriftStruct
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Immutable(id: String, type: ContentType = ContentType.Article, sectionId: Option[String] = None, sectionName: Option[String] = None, webPublicationDate: Option[CapiDateTime] = None, webTitle: String, webUrl: String, apiUrl: String, fields: Option[ContentFields] = None, tags: Seq[Tag] = Seq(), elements: Option[Seq[Element]] = None, references: Seq[Reference] = Seq(), isExpired: Option[Boolean] = None, blocks: Option[Blocks] = None, rights: Option[Rights] = None, crossword: Option[Crossword] = None)

  2. new Immutable(id: String, type: ContentType, sectionId: Option[String], sectionName: Option[String], webPublicationDate: Option[CapiDateTime], webTitle: String, webUrl: String, apiUrl: String, fields: Option[ContentFields], tags: Seq[Tag], elements: Option[Seq[Element]], references: Seq[Reference], isExpired: Option[Boolean], blocks: Option[Blocks], rights: Option[Rights], crossword: Option[Crossword], _passthroughFields: Map[Short, TFieldBlob])

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 _1: String

    Definition Classes
    Content → Product16
  7. def _10: Seq[Tag]

    Definition Classes
    Content → Product16
  8. def _11: Option[Seq[Element]]

    Definition Classes
    Content → Product16
  9. def _12: Seq[Reference]

    Definition Classes
    Content → Product16
  10. def _13: Option[Boolean]

    Definition Classes
    Content → Product16
  11. def _14: Option[Blocks]

    Definition Classes
    Content → Product16
  12. def _15: Option[Rights]

    Definition Classes
    Content → Product16
  13. def _16: Option[Crossword]

    Definition Classes
    Content → Product16
  14. def _2: ContentType

    Definition Classes
    Content → Product16
  15. def _3: Option[String]

    Definition Classes
    Content → Product16
  16. def _4: Option[String]

    Definition Classes
    Content → Product16
  17. def _5: Option[CapiDateTime]

    Definition Classes
    Content → Product16
  18. def _6: String

    Definition Classes
    Content → Product16
  19. def _7: String

    Definition Classes
    Content → Product16
  20. def _8: String

    Definition Classes
    Content → Product16
  21. def _9: Option[ContentFields]

    Definition Classes
    Content → Product16
  22. val _passthroughFields: Map[Short, TFieldBlob]

    Definition Classes
    ImmutableContent
  23. val apiUrl: String

    Definition Classes
    ImmutableContent
  24. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  25. val blocks: Option[Blocks]

    Definition Classes
    ImmutableContent
  26. def canEqual(other: Any): Boolean

    Definition Classes
    Content → Equals
  27. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def copy(id: String = this.id, type: ContentType = this.`type`, sectionId: Option[String] = this.sectionId, sectionName: Option[String] = this.sectionName, webPublicationDate: Option[CapiDateTime] = this.webPublicationDate, webTitle: String = this.webTitle, webUrl: String = this.webUrl, apiUrl: String = this.apiUrl, fields: Option[ContentFields] = this.fields, tags: Seq[Tag] = this.tags, elements: Option[Seq[Element]] = this.elements, references: Seq[Reference] = this.references, isExpired: Option[Boolean] = this.isExpired, blocks: Option[Blocks] = this.blocks, rights: Option[Rights] = this.rights, crossword: Option[Crossword] = this.crossword, _passthroughFields: Map[Short, TFieldBlob] = this._passthroughFields): Content

    Definition Classes
    Content
  29. val crossword: Option[Crossword]

    Definition Classes
    ImmutableContent
  30. val elements: Option[Seq[Element]]

    Definition Classes
    ImmutableContent
  31. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    Content → Equals → AnyRef → Any
  33. val fields: Option[ContentFields]

    Definition Classes
    ImmutableContent
  34. def finalize(): Unit

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

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

    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
    Content
  37. def getFieldBlobs(ids: TraversableOnce[Short]): Map[Short, TFieldBlob]

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

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

    Definition Classes
    Content
  38. def hashCode(): Int

    Definition Classes
    Content → AnyRef → Any
  39. val id: String

    Definition Classes
    ImmutableContent
  40. val isExpired: Option[Boolean]

    Definition Classes
    ImmutableContent
  41. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  45. def productArity: Int

    Definition Classes
    Content → Product16 → Product
  46. def productElement(n: Int): Any

    Definition Classes
    Content → Product16 → Product
  47. def productIterator: Iterator[Any]

    Definition Classes
    Product
  48. def productPrefix: String

    Definition Classes
    Content → Product
  49. val references: Seq[Reference]

    Definition Classes
    ImmutableContent
  50. val rights: Option[Rights]

    Definition Classes
    ImmutableContent
  51. val sectionId: Option[String]

    Definition Classes
    ImmutableContent
  52. val sectionName: Option[String]

    Definition Classes
    ImmutableContent
  53. def setField(_blob: TFieldBlob): Content

    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
    Content
  54. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  55. val tags: Seq[Tag]

    Definition Classes
    ImmutableContent
  56. def toString(): String

    Definition Classes
    Content → AnyRef → Any
  57. val type: ContentType

    Definition Classes
    ImmutableContent
  58. def unsetApiUrl: Content

    Definition Classes
    Content
  59. def unsetBlocks: Content

    Definition Classes
    Content
  60. def unsetCrossword: Content

    Definition Classes
    Content
  61. def unsetElements: Content

    Definition Classes
    Content
  62. def unsetField(_fieldId: Short): Content

    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
    Content
  63. def unsetFields: Content

    Definition Classes
    Content
  64. def unsetId: Content

    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
    Content
  65. def unsetIsExpired: Content

    Definition Classes
    Content
  66. def unsetReferences: Content

    Definition Classes
    Content
  67. def unsetRights: Content

    Definition Classes
    Content
  68. def unsetSectionId: Content

    Definition Classes
    Content
  69. def unsetSectionName: Content

    Definition Classes
    Content
  70. def unsetTags: Content

    Definition Classes
    Content
  71. def unsetType: Content

    Definition Classes
    Content
  72. def unsetWebPublicationDate: Content

    Definition Classes
    Content
  73. def unsetWebTitle: Content

    Definition Classes
    Content
  74. def unsetWebUrl: Content

    Definition Classes
    Content
  75. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  78. val webPublicationDate: Option[CapiDateTime]

    Definition Classes
    ImmutableContent
  79. val webTitle: String

    Definition Classes
    ImmutableContent
  80. val webUrl: String

    Definition Classes
    ImmutableContent
  81. def write(_oprot: TProtocol): Unit

    Definition Classes
    Content → ThriftStruct

Inherited from Content

Inherited from Serializable

Inherited from Product16[String, ContentType, Option[String], Option[String], Option[CapiDateTime], String, String, String, Option[ContentFields], Seq[Tag], Option[Seq[Element]], Seq[Reference], Option[Boolean], Option[Blocks], Option[Rights], Option[Crossword]]

Inherited from Product

Inherited from Equals

Inherited from ThriftStruct

Inherited from AnyRef

Inherited from Any

Ungrouped