// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package components // Tag - A variety of extra information about a metadata item is included as tags. These tags use their own element names such as `Genre`, `Writer`, `Directory`, and `Role`. Individual tag types may introduce their own extra attributes. type Tag struct { // Measure of the confidence of an automatic tag Confidence *float64 `json:"confidence,omitempty"` Context *string `json:"context,omitempty"` // A filter parameter that can be used to query for more content that matches this tag value. Filter *string `json:"filter,omitempty"` ID *int `json:"id,omitempty"` // The rating key (Media ID) of this media item. Note: Although this is always an integer, it is represented as a string in the API. RatingKey *string `json:"ratingKey,omitempty"` // The role this actor played Role *string `json:"role,omitempty"` // The value of the tag (the name) Tag string `json:"tag"` // Plex identifier for this tag which can be used to fetch additional information from plex.tv TagKey *string `json:"tagKey,omitempty"` TagType *int `json:"tagType,omitempty"` Thumb *string `json:"thumb,omitempty"` } func (t *Tag) GetConfidence() *float64 { if t == nil { return nil } return t.Confidence } func (t *Tag) GetContext() *string { if t == nil { return nil } return t.Context } func (t *Tag) GetFilter() *string { if t == nil { return nil } return t.Filter } func (t *Tag) GetID() *int { if t == nil { return nil } return t.ID } func (t *Tag) GetRatingKey() *string { if t == nil { return nil } return t.RatingKey } func (t *Tag) GetRole() *string { if t == nil { return nil } return t.Role } func (t *Tag) GetTag() string { if t == nil { return "" } return t.Tag } func (t *Tag) GetTagKey() *string { if t == nil { return nil } return t.TagKey } func (t *Tag) GetTagType() *int { if t == nil { return nil } return t.TagType } func (t *Tag) GetThumb() *string { if t == nil { return nil } return t.Thumb }