Class/Object

com.gu.flexiblecontent.model.thrift.ContentFields

Immutable

Related Docs: object Immutable | package ContentFields

Permalink

class Immutable extends ContentFields

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

Linear Supertypes
ContentFields, Serializable, ValidatingThriftStruct[ContentFields], HasThriftStructCodec3[ContentFields], Product19[Option[String], Option[String], Option[String], Option[String], Option[String], Option[String], Option[String], Option[String], Option[Int], Option[Long], Option[Short], Option[String], Option[MembershipTier], Option[Int], Option[String], Option[String], Option[Int], Option[String], Option[Int]], Product, Equals, ThriftStruct, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Immutable
  2. ContentFields
  3. Serializable
  4. ValidatingThriftStruct
  5. HasThriftStructCodec3
  6. Product19
  7. Product
  8. Equals
  9. ThriftStruct
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Immutable(headline: Option[String] = _root_.scala.None, slug: Option[String] = _root_.scala.None, linkText: Option[String] = _root_.scala.None, standfirst: Option[String] = _root_.scala.None, trailText: Option[String] = _root_.scala.None, byline: Option[String] = _root_.scala.None, main: Option[String] = _root_.scala.None, body: Option[String] = _root_.scala.None, newspaperPageNumber: Option[Int] = _root_.scala.None, newspaperPublicationDate: Option[Long] = _root_.scala.None, starRating: Option[Short] = _root_.scala.None, contributorBio: Option[String] = _root_.scala.None, membershipAccess: Option[MembershipTier] = _root_.scala.None, wordCount: Option[Int] = _root_.scala.None, socialShareText: Option[String] = _root_.scala.None, shortSocialShareText: Option[String] = _root_.scala.None, commissionedLength: Option[Int] = _root_.scala.None, bylineHtml: Option[String] = _root_.scala.None, printWordCount: Option[Int] = _root_.scala.None)

    Permalink
  2. new Immutable(headline: Option[String], slug: Option[String], linkText: Option[String], standfirst: Option[String], trailText: Option[String], byline: Option[String], main: Option[String], body: Option[String], newspaperPageNumber: Option[Int], newspaperPublicationDate: Option[Long], starRating: Option[Short], contributorBio: Option[String], membershipAccess: Option[MembershipTier], wordCount: Option[Int], socialShareText: Option[String], shortSocialShareText: Option[String], commissionedLength: Option[Int], bylineHtml: Option[String], printWordCount: Option[Int], _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: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  5. def _10: Option[Long]

    Permalink
    Definition Classes
    ContentFields → Product19
  6. def _11: Option[Short]

    Permalink
    Definition Classes
    ContentFields → Product19
  7. def _12: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  8. def _13: Option[MembershipTier]

    Permalink
    Definition Classes
    ContentFields → Product19
  9. def _14: Option[Int]

    Permalink
    Definition Classes
    ContentFields → Product19
  10. def _15: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  11. def _16: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  12. def _17: Option[Int]

    Permalink
    Definition Classes
    ContentFields → Product19
  13. def _18: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  14. def _19: Option[Int]

    Permalink
    Definition Classes
    ContentFields → Product19
  15. def _2: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  16. def _3: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  17. def _4: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  18. def _5: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  19. def _6: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  20. def _7: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  21. def _8: Option[String]

    Permalink
    Definition Classes
    ContentFields → Product19
  22. def _9: Option[Int]

    Permalink
    Definition Classes
    ContentFields → Product19
  23. def _codec: ValidatingThriftStructCodec3[ContentFields]

    Permalink
    Definition Classes
    ContentFields → ValidatingThriftStruct → HasThriftStructCodec3
  24. val _passthroughFields: Map[Short, TFieldBlob]

    Permalink
    Definition Classes
    ImmutableContentFields
  25. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  26. val body: Option[String]

    Permalink
    Definition Classes
    ImmutableContentFields
  27. val byline: Option[String]

    Permalink

    the byline for the contributor(s) or agency that wrote the content.

    the byline for the contributor(s) or agency that wrote the content. May contain links to contributor pages as HTML

    Definition Classes
    ImmutableContentFields
  28. val bylineHtml: Option[String]

    Permalink

    the byline for the contributor(s) or agency that wrote the content.

    the byline for the contributor(s) or agency that wrote the content. Will contain links to contributor pages as HTML

    Definition Classes
    ImmutableContentFields
  29. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    ContentFields → Equals
  30. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  31. val commissionedLength: Option[Int]

    Permalink

    The number of words in the body text

    The number of words in the body text

    Definition Classes
    ImmutableContentFields
  32. val contributorBio: Option[String]

    Permalink

    The context info about the contributor for this story

    The context info about the contributor for this story

    Definition Classes
    ImmutableContentFields
  33. def copy(headline: Option[String] = this.headline, slug: Option[String] = this.slug, linkText: Option[String] = this.linkText, standfirst: Option[String] = this.standfirst, trailText: Option[String] = this.trailText, byline: Option[String] = this.byline, main: Option[String] = this.main, body: Option[String] = this.body, newspaperPageNumber: Option[Int] = this.newspaperPageNumber, newspaperPublicationDate: Option[Long] = this.newspaperPublicationDate, starRating: Option[Short] = this.starRating, contributorBio: Option[String] = this.contributorBio, membershipAccess: Option[MembershipTier] = this.membershipAccess, wordCount: Option[Int] = this.wordCount, socialShareText: Option[String] = this.socialShareText, shortSocialShareText: Option[String] = this.shortSocialShareText, commissionedLength: Option[Int] = this.commissionedLength, bylineHtml: Option[String] = this.bylineHtml, printWordCount: Option[Int] = this.printWordCount, _passthroughFields: Map[Short, TFieldBlob] = this._passthroughFields): ContentFields

    Permalink
    Definition Classes
    ContentFields
  34. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    ContentFields → Equals → AnyRef → Any
  36. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  37. 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.

    Definition Classes
    ContentFields
  38. 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
    ContentFields
  39. def hashCode(): Int

    Permalink
    Definition Classes
    ContentFields → AnyRef → Any
  40. val headline: Option[String]

    Permalink

    The headline, does not contain HTML

    The headline, does not contain HTML

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

    Permalink
    Definition Classes
    Any
  42. val linkText: Option[String]

    Permalink

    The text used when linking to the content, usually derives from the headline

    The text used when linking to the content, usually derives from the headline

    Definition Classes
    ImmutableContentFields
  43. val main: Option[String]

    Permalink
    Definition Classes
    ImmutableContentFields
  44. val membershipAccess: Option[MembershipTier]

    Permalink

    Indicates what level of membership is needed to view content

    Indicates what level of membership is needed to view content

    Definition Classes
    ImmutableContentFields
  45. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  46. val newspaperPageNumber: Option[Int]

    Permalink

    The page in the newspaper this content appeared on

    The page in the newspaper this content appeared on

    Definition Classes
    ImmutableContentFields
  47. val newspaperPublicationDate: Option[Long]

    Permalink

    The date of the newspaper this content appears in (can be in the future if on the web before printing)

    The date of the newspaper this content appears in (can be in the future if on the web before printing)

    Definition Classes
    ImmutableContentFields
  48. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  49. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  50. val printWordCount: Option[Int]

    Permalink

    The number of words in the body text, as printed, excluding those which are marked gu-webonly and including those which are gu-printonly (SEE 14)

    The number of words in the body text, as printed, excluding those which are marked gu-webonly and including those which are gu-printonly (SEE 14)

    Definition Classes
    ImmutableContentFields
  51. def productArity: Int

    Permalink
    Definition Classes
    ContentFields → Product19 → Product
  52. def productElement(n: Int): Any

    Permalink
    Definition Classes
    ContentFields → Product19 → Product
  53. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  54. def productPrefix: String

    Permalink
    Definition Classes
    ContentFields → Product
  55. def setField(_blob: TFieldBlob): ContentFields

    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
    ContentFields
  56. val shortSocialShareText: Option[String]

    Permalink

    Short social share text override suitable for a service such as twitter (No Html)

    Short social share text override suitable for a service such as twitter (No Html)

    Definition Classes
    ImmutableContentFields
  57. val slug: Option[String]

    Permalink

    The url slug for thew content, usually derives from the headline

    The url slug for thew content, usually derives from the headline

    Definition Classes
    ImmutableContentFields
  58. val socialShareText: Option[String]

    Permalink

    Social share text override suitable for a service such as facebook (No Html)

    Social share text override suitable for a service such as facebook (No Html)

    Definition Classes
    ImmutableContentFields
  59. val standfirst: Option[String]

    Permalink

    The standfirst of the content, can contain HTML

    The standfirst of the content, can contain HTML

    Definition Classes
    ImmutableContentFields
  60. val starRating: Option[Short]

    Permalink

    The star rating on a review.

    The star rating on a review. will be 0 to 5

    Definition Classes
    ImmutableContentFields
  61. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    ContentFields → AnyRef → Any
  63. def toTuple: (Option[String], Option[String], Option[String], Option[String], Option[String], Option[String], Option[String], Option[String], Option[Int], Option[Long], Option[Short], Option[String], Option[MembershipTier], Option[Int], Option[String], Option[String], Option[Int], Option[String], Option[Int])

    Permalink
    Definition Classes
    ContentFields
  64. val trailText: Option[String]

    Permalink

    The short text used when promoting the content, can be derived from the standfirst, can contain HTML

    The short text used when promoting the content, can be derived from the standfirst, can contain HTML

    Definition Classes
    ImmutableContentFields
  65. def unsetBody: ContentFields

    Permalink
    Definition Classes
    ContentFields
  66. def unsetByline: ContentFields

    Permalink
    Definition Classes
    ContentFields
  67. def unsetBylineHtml: ContentFields

    Permalink
    Definition Classes
    ContentFields
  68. def unsetCommissionedLength: ContentFields

    Permalink
    Definition Classes
    ContentFields
  69. def unsetContributorBio: ContentFields

    Permalink
    Definition Classes
    ContentFields
  70. def unsetField(_fieldId: Short): ContentFields

    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.

    Definition Classes
    ContentFields
  71. def unsetHeadline: ContentFields

    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.

    Definition Classes
    ContentFields
  72. def unsetLinkText: ContentFields

    Permalink
    Definition Classes
    ContentFields
  73. def unsetMain: ContentFields

    Permalink
    Definition Classes
    ContentFields
  74. def unsetMembershipAccess: ContentFields

    Permalink
    Definition Classes
    ContentFields
  75. def unsetNewspaperPageNumber: ContentFields

    Permalink
    Definition Classes
    ContentFields
  76. def unsetNewspaperPublicationDate: ContentFields

    Permalink
    Definition Classes
    ContentFields
  77. def unsetPrintWordCount: ContentFields

    Permalink
    Definition Classes
    ContentFields
  78. def unsetShortSocialShareText: ContentFields

    Permalink
    Definition Classes
    ContentFields
  79. def unsetSlug: ContentFields

    Permalink
    Definition Classes
    ContentFields
  80. def unsetSocialShareText: ContentFields

    Permalink
    Definition Classes
    ContentFields
  81. def unsetStandfirst: ContentFields

    Permalink
    Definition Classes
    ContentFields
  82. def unsetStarRating: ContentFields

    Permalink
    Definition Classes
    ContentFields
  83. def unsetTrailText: ContentFields

    Permalink
    Definition Classes
    ContentFields
  84. def unsetWordCount: ContentFields

    Permalink
    Definition Classes
    ContentFields
  85. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  87. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  88. val wordCount: Option[Int]

    Permalink

    The number of words in the body text, as displayed on web (SEE 19)

    The number of words in the body text, as displayed on web (SEE 19)

    Definition Classes
    ImmutableContentFields
  89. def write(_oprot: TProtocol): Unit

    Permalink
    Definition Classes
    ContentFields → ThriftStruct

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from ContentFields

Inherited from Serializable

Inherited from ValidatingThriftStruct[ContentFields]

Inherited from HasThriftStructCodec3[ContentFields]

Inherited from Product19[Option[String], Option[String], Option[String], Option[String], Option[String], Option[String], Option[String], Option[String], Option[Int], Option[Long], Option[Short], Option[String], Option[MembershipTier], Option[Int], Option[String], Option[String], Option[Int], Option[String], Option[Int]]

Inherited from Product

Inherited from Equals

Inherited from ThriftStruct

Inherited from AnyRef

Inherited from Any

Ungrouped