2758 lines
78 KiB
Go
2758 lines
78 KiB
Go
// Code generated by ogen, DO NOT EDIT.
|
|
|
|
package go_youtubekids_client
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/go-faster/errors"
|
|
)
|
|
|
|
func (s *ErrorResponsePayloadStatusCode) Error() string {
|
|
return fmt.Sprintf("code %d: %+v", s.StatusCode, s.Response)
|
|
}
|
|
|
|
// Ref: #/components/schemas/Accessibility
|
|
type Accessibility struct {
|
|
AccessibilityData OptAccessibilityData `json:"accessibilityData"`
|
|
}
|
|
|
|
// GetAccessibilityData returns the value of AccessibilityData.
|
|
func (s *Accessibility) GetAccessibilityData() OptAccessibilityData {
|
|
return s.AccessibilityData
|
|
}
|
|
|
|
// SetAccessibilityData sets the value of AccessibilityData.
|
|
func (s *Accessibility) SetAccessibilityData(val OptAccessibilityData) {
|
|
s.AccessibilityData = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/AccessibilityData
|
|
type AccessibilityData struct {
|
|
Label OptString `json:"label"`
|
|
}
|
|
|
|
// GetLabel returns the value of Label.
|
|
func (s *AccessibilityData) GetLabel() OptString {
|
|
return s.Label
|
|
}
|
|
|
|
// SetLabel sets the value of Label.
|
|
func (s *AccessibilityData) SetLabel(val OptString) {
|
|
s.Label = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/AnchoredSectionRenderer
|
|
type AnchoredSectionRenderer struct {
|
|
Title OptString `json:"title"`
|
|
Content OptAnchoredSectionRendererContent `json:"content"`
|
|
TrackingParams OptString `json:"trackingParams"`
|
|
NavigationEndpoint OptNavigationEndpoint `json:"navigationEndpoint"`
|
|
CategoryAssets OptCategoryAssets `json:"categoryAssets"`
|
|
CategoryType OptString `json:"categoryType"`
|
|
}
|
|
|
|
// GetTitle returns the value of Title.
|
|
func (s *AnchoredSectionRenderer) GetTitle() OptString {
|
|
return s.Title
|
|
}
|
|
|
|
// GetContent returns the value of Content.
|
|
func (s *AnchoredSectionRenderer) GetContent() OptAnchoredSectionRendererContent {
|
|
return s.Content
|
|
}
|
|
|
|
// GetTrackingParams returns the value of TrackingParams.
|
|
func (s *AnchoredSectionRenderer) GetTrackingParams() OptString {
|
|
return s.TrackingParams
|
|
}
|
|
|
|
// GetNavigationEndpoint returns the value of NavigationEndpoint.
|
|
func (s *AnchoredSectionRenderer) GetNavigationEndpoint() OptNavigationEndpoint {
|
|
return s.NavigationEndpoint
|
|
}
|
|
|
|
// GetCategoryAssets returns the value of CategoryAssets.
|
|
func (s *AnchoredSectionRenderer) GetCategoryAssets() OptCategoryAssets {
|
|
return s.CategoryAssets
|
|
}
|
|
|
|
// GetCategoryType returns the value of CategoryType.
|
|
func (s *AnchoredSectionRenderer) GetCategoryType() OptString {
|
|
return s.CategoryType
|
|
}
|
|
|
|
// SetTitle sets the value of Title.
|
|
func (s *AnchoredSectionRenderer) SetTitle(val OptString) {
|
|
s.Title = val
|
|
}
|
|
|
|
// SetContent sets the value of Content.
|
|
func (s *AnchoredSectionRenderer) SetContent(val OptAnchoredSectionRendererContent) {
|
|
s.Content = val
|
|
}
|
|
|
|
// SetTrackingParams sets the value of TrackingParams.
|
|
func (s *AnchoredSectionRenderer) SetTrackingParams(val OptString) {
|
|
s.TrackingParams = val
|
|
}
|
|
|
|
// SetNavigationEndpoint sets the value of NavigationEndpoint.
|
|
func (s *AnchoredSectionRenderer) SetNavigationEndpoint(val OptNavigationEndpoint) {
|
|
s.NavigationEndpoint = val
|
|
}
|
|
|
|
// SetCategoryAssets sets the value of CategoryAssets.
|
|
func (s *AnchoredSectionRenderer) SetCategoryAssets(val OptCategoryAssets) {
|
|
s.CategoryAssets = val
|
|
}
|
|
|
|
// SetCategoryType sets the value of CategoryType.
|
|
func (s *AnchoredSectionRenderer) SetCategoryType(val OptString) {
|
|
s.CategoryType = val
|
|
}
|
|
|
|
type AnchoredSectionRendererContent struct {
|
|
SectionListRenderer OptSectionListRenderer `json:"sectionListRenderer"`
|
|
}
|
|
|
|
// GetSectionListRenderer returns the value of SectionListRenderer.
|
|
func (s *AnchoredSectionRendererContent) GetSectionListRenderer() OptSectionListRenderer {
|
|
return s.SectionListRenderer
|
|
}
|
|
|
|
// SetSectionListRenderer sets the value of SectionListRenderer.
|
|
func (s *AnchoredSectionRendererContent) SetSectionListRenderer(val OptSectionListRenderer) {
|
|
s.SectionListRenderer = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BrowseEndpoint
|
|
type BrowseEndpoint struct {
|
|
BrowseId OptString `json:"browseId"`
|
|
CanonicalBaseUrl OptString `json:"canonicalBaseUrl"`
|
|
}
|
|
|
|
// GetBrowseId returns the value of BrowseId.
|
|
func (s *BrowseEndpoint) GetBrowseId() OptString {
|
|
return s.BrowseId
|
|
}
|
|
|
|
// GetCanonicalBaseUrl returns the value of CanonicalBaseUrl.
|
|
func (s *BrowseEndpoint) GetCanonicalBaseUrl() OptString {
|
|
return s.CanonicalBaseUrl
|
|
}
|
|
|
|
// SetBrowseId sets the value of BrowseId.
|
|
func (s *BrowseEndpoint) SetBrowseId(val OptString) {
|
|
s.BrowseId = val
|
|
}
|
|
|
|
// SetCanonicalBaseUrl sets the value of CanonicalBaseUrl.
|
|
func (s *BrowseEndpoint) SetCanonicalBaseUrl(val OptString) {
|
|
s.CanonicalBaseUrl = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BrowseRequestPayload
|
|
type BrowseRequestPayload struct {
|
|
Context RequestContext `json:"context"`
|
|
Params OptString `json:"params"`
|
|
BrowseId string `json:"browseId"`
|
|
}
|
|
|
|
// GetContext returns the value of Context.
|
|
func (s *BrowseRequestPayload) GetContext() RequestContext {
|
|
return s.Context
|
|
}
|
|
|
|
// GetParams returns the value of Params.
|
|
func (s *BrowseRequestPayload) GetParams() OptString {
|
|
return s.Params
|
|
}
|
|
|
|
// GetBrowseId returns the value of BrowseId.
|
|
func (s *BrowseRequestPayload) GetBrowseId() string {
|
|
return s.BrowseId
|
|
}
|
|
|
|
// SetContext sets the value of Context.
|
|
func (s *BrowseRequestPayload) SetContext(val RequestContext) {
|
|
s.Context = val
|
|
}
|
|
|
|
// SetParams sets the value of Params.
|
|
func (s *BrowseRequestPayload) SetParams(val OptString) {
|
|
s.Params = val
|
|
}
|
|
|
|
// SetBrowseId sets the value of BrowseId.
|
|
func (s *BrowseRequestPayload) SetBrowseId(val string) {
|
|
s.BrowseId = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BrowseResponsePayload
|
|
type BrowseResponsePayload struct {
|
|
ResponseContext ResponseContext `json:"responseContext"`
|
|
Header BrowseResponsePayloadHeader `json:"header"`
|
|
Contents BrowseResponsePayloadContents `json:"contents"`
|
|
TrackingParams OptString `json:"trackingParams"`
|
|
}
|
|
|
|
// GetResponseContext returns the value of ResponseContext.
|
|
func (s *BrowseResponsePayload) GetResponseContext() ResponseContext {
|
|
return s.ResponseContext
|
|
}
|
|
|
|
// GetHeader returns the value of Header.
|
|
func (s *BrowseResponsePayload) GetHeader() BrowseResponsePayloadHeader {
|
|
return s.Header
|
|
}
|
|
|
|
// GetContents returns the value of Contents.
|
|
func (s *BrowseResponsePayload) GetContents() BrowseResponsePayloadContents {
|
|
return s.Contents
|
|
}
|
|
|
|
// GetTrackingParams returns the value of TrackingParams.
|
|
func (s *BrowseResponsePayload) GetTrackingParams() OptString {
|
|
return s.TrackingParams
|
|
}
|
|
|
|
// SetResponseContext sets the value of ResponseContext.
|
|
func (s *BrowseResponsePayload) SetResponseContext(val ResponseContext) {
|
|
s.ResponseContext = val
|
|
}
|
|
|
|
// SetHeader sets the value of Header.
|
|
func (s *BrowseResponsePayload) SetHeader(val BrowseResponsePayloadHeader) {
|
|
s.Header = val
|
|
}
|
|
|
|
// SetContents sets the value of Contents.
|
|
func (s *BrowseResponsePayload) SetContents(val BrowseResponsePayloadContents) {
|
|
s.Contents = val
|
|
}
|
|
|
|
// SetTrackingParams sets the value of TrackingParams.
|
|
func (s *BrowseResponsePayload) SetTrackingParams(val OptString) {
|
|
s.TrackingParams = val
|
|
}
|
|
|
|
type BrowseResponsePayloadContents struct {
|
|
KidsHomeScreenRenderer OptScreenRenderer `json:"kidsHomeScreenRenderer"`
|
|
}
|
|
|
|
// GetKidsHomeScreenRenderer returns the value of KidsHomeScreenRenderer.
|
|
func (s *BrowseResponsePayloadContents) GetKidsHomeScreenRenderer() OptScreenRenderer {
|
|
return s.KidsHomeScreenRenderer
|
|
}
|
|
|
|
// SetKidsHomeScreenRenderer sets the value of KidsHomeScreenRenderer.
|
|
func (s *BrowseResponsePayloadContents) SetKidsHomeScreenRenderer(val OptScreenRenderer) {
|
|
s.KidsHomeScreenRenderer = val
|
|
}
|
|
|
|
type BrowseResponsePayloadHeader struct {
|
|
KidsCategoriesHeaderRenderer OptCategoriesHeaderRenderer `json:"kidsCategoriesHeaderRenderer"`
|
|
}
|
|
|
|
// GetKidsCategoriesHeaderRenderer returns the value of KidsCategoriesHeaderRenderer.
|
|
func (s *BrowseResponsePayloadHeader) GetKidsCategoriesHeaderRenderer() OptCategoriesHeaderRenderer {
|
|
return s.KidsCategoriesHeaderRenderer
|
|
}
|
|
|
|
// SetKidsCategoriesHeaderRenderer sets the value of KidsCategoriesHeaderRenderer.
|
|
func (s *BrowseResponsePayloadHeader) SetKidsCategoriesHeaderRenderer(val OptCategoriesHeaderRenderer) {
|
|
s.KidsCategoriesHeaderRenderer = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CategoriesHeaderRenderer
|
|
type CategoriesHeaderRenderer struct {
|
|
TrackingParams OptString `json:"trackingParams"`
|
|
}
|
|
|
|
// GetTrackingParams returns the value of TrackingParams.
|
|
func (s *CategoriesHeaderRenderer) GetTrackingParams() OptString {
|
|
return s.TrackingParams
|
|
}
|
|
|
|
// SetTrackingParams sets the value of TrackingParams.
|
|
func (s *CategoriesHeaderRenderer) SetTrackingParams(val OptString) {
|
|
s.TrackingParams = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CategoryAssets
|
|
type CategoryAssets struct {
|
|
AssetKey string `json:"assetKey"`
|
|
BackgroundColor OptString `json:"backgroundColor"`
|
|
}
|
|
|
|
// GetAssetKey returns the value of AssetKey.
|
|
func (s *CategoryAssets) GetAssetKey() string {
|
|
return s.AssetKey
|
|
}
|
|
|
|
// GetBackgroundColor returns the value of BackgroundColor.
|
|
func (s *CategoryAssets) GetBackgroundColor() OptString {
|
|
return s.BackgroundColor
|
|
}
|
|
|
|
// SetAssetKey sets the value of AssetKey.
|
|
func (s *CategoryAssets) SetAssetKey(val string) {
|
|
s.AssetKey = val
|
|
}
|
|
|
|
// SetBackgroundColor sets the value of BackgroundColor.
|
|
func (s *CategoryAssets) SetBackgroundColor(val OptString) {
|
|
s.BackgroundColor = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CompactChannelRenderer
|
|
type CompactChannelRenderer struct {
|
|
ChannelId string `json:"channelId"`
|
|
Thumbnail OptCompactChannelRendererThumbnail `json:"thumbnail"`
|
|
DisplayName Text `json:"displayName"`
|
|
VideoCountText Text `json:"videoCountText"`
|
|
SubscriberCountText OptText `json:"subscriberCountText"`
|
|
NavigationEndpoint OptNavigationEndpoint `json:"navigationEndpoint"`
|
|
Title Text `json:"title"`
|
|
TrackingParams string `json:"trackingParams"`
|
|
}
|
|
|
|
// GetChannelId returns the value of ChannelId.
|
|
func (s *CompactChannelRenderer) GetChannelId() string {
|
|
return s.ChannelId
|
|
}
|
|
|
|
// GetThumbnail returns the value of Thumbnail.
|
|
func (s *CompactChannelRenderer) GetThumbnail() OptCompactChannelRendererThumbnail {
|
|
return s.Thumbnail
|
|
}
|
|
|
|
// GetDisplayName returns the value of DisplayName.
|
|
func (s *CompactChannelRenderer) GetDisplayName() Text {
|
|
return s.DisplayName
|
|
}
|
|
|
|
// GetVideoCountText returns the value of VideoCountText.
|
|
func (s *CompactChannelRenderer) GetVideoCountText() Text {
|
|
return s.VideoCountText
|
|
}
|
|
|
|
// GetSubscriberCountText returns the value of SubscriberCountText.
|
|
func (s *CompactChannelRenderer) GetSubscriberCountText() OptText {
|
|
return s.SubscriberCountText
|
|
}
|
|
|
|
// GetNavigationEndpoint returns the value of NavigationEndpoint.
|
|
func (s *CompactChannelRenderer) GetNavigationEndpoint() OptNavigationEndpoint {
|
|
return s.NavigationEndpoint
|
|
}
|
|
|
|
// GetTitle returns the value of Title.
|
|
func (s *CompactChannelRenderer) GetTitle() Text {
|
|
return s.Title
|
|
}
|
|
|
|
// GetTrackingParams returns the value of TrackingParams.
|
|
func (s *CompactChannelRenderer) GetTrackingParams() string {
|
|
return s.TrackingParams
|
|
}
|
|
|
|
// SetChannelId sets the value of ChannelId.
|
|
func (s *CompactChannelRenderer) SetChannelId(val string) {
|
|
s.ChannelId = val
|
|
}
|
|
|
|
// SetThumbnail sets the value of Thumbnail.
|
|
func (s *CompactChannelRenderer) SetThumbnail(val OptCompactChannelRendererThumbnail) {
|
|
s.Thumbnail = val
|
|
}
|
|
|
|
// SetDisplayName sets the value of DisplayName.
|
|
func (s *CompactChannelRenderer) SetDisplayName(val Text) {
|
|
s.DisplayName = val
|
|
}
|
|
|
|
// SetVideoCountText sets the value of VideoCountText.
|
|
func (s *CompactChannelRenderer) SetVideoCountText(val Text) {
|
|
s.VideoCountText = val
|
|
}
|
|
|
|
// SetSubscriberCountText sets the value of SubscriberCountText.
|
|
func (s *CompactChannelRenderer) SetSubscriberCountText(val OptText) {
|
|
s.SubscriberCountText = val
|
|
}
|
|
|
|
// SetNavigationEndpoint sets the value of NavigationEndpoint.
|
|
func (s *CompactChannelRenderer) SetNavigationEndpoint(val OptNavigationEndpoint) {
|
|
s.NavigationEndpoint = val
|
|
}
|
|
|
|
// SetTitle sets the value of Title.
|
|
func (s *CompactChannelRenderer) SetTitle(val Text) {
|
|
s.Title = val
|
|
}
|
|
|
|
// SetTrackingParams sets the value of TrackingParams.
|
|
func (s *CompactChannelRenderer) SetTrackingParams(val string) {
|
|
s.TrackingParams = val
|
|
}
|
|
|
|
type CompactChannelRendererThumbnail struct {
|
|
Thumbnails []Thumbnail `json:"thumbnails"`
|
|
}
|
|
|
|
// GetThumbnails returns the value of Thumbnails.
|
|
func (s *CompactChannelRendererThumbnail) GetThumbnails() []Thumbnail {
|
|
return s.Thumbnails
|
|
}
|
|
|
|
// SetThumbnails sets the value of Thumbnails.
|
|
func (s *CompactChannelRendererThumbnail) SetThumbnails(val []Thumbnail) {
|
|
s.Thumbnails = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CompactPlaylistRenderer
|
|
type CompactPlaylistRenderer struct {
|
|
PlaylistId string `json:"playlistId"`
|
|
Thumbnail OptCompactPlaylistRendererThumbnail `json:"thumbnail"`
|
|
Title Text `json:"title"`
|
|
ShortBylineText OptText `json:"shortBylineText"`
|
|
VideoCountText OptText `json:"videoCountText"`
|
|
NavigationEndpoint OptNavigationEndpoint `json:"navigationEndpoint"`
|
|
VideoCountShortText OptText `json:"videoCountShortText"`
|
|
TrackingParams string `json:"trackingParams"`
|
|
SidebarThumbnails []CompactPlaylistRendererSidebarThumbnailsItem `json:"sidebarThumbnails"`
|
|
ThumbnailText OptText `json:"thumbnailText"`
|
|
ShareUrl OptString `json:"shareUrl"`
|
|
LongBylineText OptText `json:"longBylineText"`
|
|
TvBanner OptCompactPlaylistRendererTvBanner `json:"tvBanner"`
|
|
}
|
|
|
|
// GetPlaylistId returns the value of PlaylistId.
|
|
func (s *CompactPlaylistRenderer) GetPlaylistId() string {
|
|
return s.PlaylistId
|
|
}
|
|
|
|
// GetThumbnail returns the value of Thumbnail.
|
|
func (s *CompactPlaylistRenderer) GetThumbnail() OptCompactPlaylistRendererThumbnail {
|
|
return s.Thumbnail
|
|
}
|
|
|
|
// GetTitle returns the value of Title.
|
|
func (s *CompactPlaylistRenderer) GetTitle() Text {
|
|
return s.Title
|
|
}
|
|
|
|
// GetShortBylineText returns the value of ShortBylineText.
|
|
func (s *CompactPlaylistRenderer) GetShortBylineText() OptText {
|
|
return s.ShortBylineText
|
|
}
|
|
|
|
// GetVideoCountText returns the value of VideoCountText.
|
|
func (s *CompactPlaylistRenderer) GetVideoCountText() OptText {
|
|
return s.VideoCountText
|
|
}
|
|
|
|
// GetNavigationEndpoint returns the value of NavigationEndpoint.
|
|
func (s *CompactPlaylistRenderer) GetNavigationEndpoint() OptNavigationEndpoint {
|
|
return s.NavigationEndpoint
|
|
}
|
|
|
|
// GetVideoCountShortText returns the value of VideoCountShortText.
|
|
func (s *CompactPlaylistRenderer) GetVideoCountShortText() OptText {
|
|
return s.VideoCountShortText
|
|
}
|
|
|
|
// GetTrackingParams returns the value of TrackingParams.
|
|
func (s *CompactPlaylistRenderer) GetTrackingParams() string {
|
|
return s.TrackingParams
|
|
}
|
|
|
|
// GetSidebarThumbnails returns the value of SidebarThumbnails.
|
|
func (s *CompactPlaylistRenderer) GetSidebarThumbnails() []CompactPlaylistRendererSidebarThumbnailsItem {
|
|
return s.SidebarThumbnails
|
|
}
|
|
|
|
// GetThumbnailText returns the value of ThumbnailText.
|
|
func (s *CompactPlaylistRenderer) GetThumbnailText() OptText {
|
|
return s.ThumbnailText
|
|
}
|
|
|
|
// GetShareUrl returns the value of ShareUrl.
|
|
func (s *CompactPlaylistRenderer) GetShareUrl() OptString {
|
|
return s.ShareUrl
|
|
}
|
|
|
|
// GetLongBylineText returns the value of LongBylineText.
|
|
func (s *CompactPlaylistRenderer) GetLongBylineText() OptText {
|
|
return s.LongBylineText
|
|
}
|
|
|
|
// GetTvBanner returns the value of TvBanner.
|
|
func (s *CompactPlaylistRenderer) GetTvBanner() OptCompactPlaylistRendererTvBanner {
|
|
return s.TvBanner
|
|
}
|
|
|
|
// SetPlaylistId sets the value of PlaylistId.
|
|
func (s *CompactPlaylistRenderer) SetPlaylistId(val string) {
|
|
s.PlaylistId = val
|
|
}
|
|
|
|
// SetThumbnail sets the value of Thumbnail.
|
|
func (s *CompactPlaylistRenderer) SetThumbnail(val OptCompactPlaylistRendererThumbnail) {
|
|
s.Thumbnail = val
|
|
}
|
|
|
|
// SetTitle sets the value of Title.
|
|
func (s *CompactPlaylistRenderer) SetTitle(val Text) {
|
|
s.Title = val
|
|
}
|
|
|
|
// SetShortBylineText sets the value of ShortBylineText.
|
|
func (s *CompactPlaylistRenderer) SetShortBylineText(val OptText) {
|
|
s.ShortBylineText = val
|
|
}
|
|
|
|
// SetVideoCountText sets the value of VideoCountText.
|
|
func (s *CompactPlaylistRenderer) SetVideoCountText(val OptText) {
|
|
s.VideoCountText = val
|
|
}
|
|
|
|
// SetNavigationEndpoint sets the value of NavigationEndpoint.
|
|
func (s *CompactPlaylistRenderer) SetNavigationEndpoint(val OptNavigationEndpoint) {
|
|
s.NavigationEndpoint = val
|
|
}
|
|
|
|
// SetVideoCountShortText sets the value of VideoCountShortText.
|
|
func (s *CompactPlaylistRenderer) SetVideoCountShortText(val OptText) {
|
|
s.VideoCountShortText = val
|
|
}
|
|
|
|
// SetTrackingParams sets the value of TrackingParams.
|
|
func (s *CompactPlaylistRenderer) SetTrackingParams(val string) {
|
|
s.TrackingParams = val
|
|
}
|
|
|
|
// SetSidebarThumbnails sets the value of SidebarThumbnails.
|
|
func (s *CompactPlaylistRenderer) SetSidebarThumbnails(val []CompactPlaylistRendererSidebarThumbnailsItem) {
|
|
s.SidebarThumbnails = val
|
|
}
|
|
|
|
// SetThumbnailText sets the value of ThumbnailText.
|
|
func (s *CompactPlaylistRenderer) SetThumbnailText(val OptText) {
|
|
s.ThumbnailText = val
|
|
}
|
|
|
|
// SetShareUrl sets the value of ShareUrl.
|
|
func (s *CompactPlaylistRenderer) SetShareUrl(val OptString) {
|
|
s.ShareUrl = val
|
|
}
|
|
|
|
// SetLongBylineText sets the value of LongBylineText.
|
|
func (s *CompactPlaylistRenderer) SetLongBylineText(val OptText) {
|
|
s.LongBylineText = val
|
|
}
|
|
|
|
// SetTvBanner sets the value of TvBanner.
|
|
func (s *CompactPlaylistRenderer) SetTvBanner(val OptCompactPlaylistRendererTvBanner) {
|
|
s.TvBanner = val
|
|
}
|
|
|
|
type CompactPlaylistRendererSidebarThumbnailsItem struct {
|
|
Thumbnails []Thumbnail `json:"thumbnails"`
|
|
}
|
|
|
|
// GetThumbnails returns the value of Thumbnails.
|
|
func (s *CompactPlaylistRendererSidebarThumbnailsItem) GetThumbnails() []Thumbnail {
|
|
return s.Thumbnails
|
|
}
|
|
|
|
// SetThumbnails sets the value of Thumbnails.
|
|
func (s *CompactPlaylistRendererSidebarThumbnailsItem) SetThumbnails(val []Thumbnail) {
|
|
s.Thumbnails = val
|
|
}
|
|
|
|
type CompactPlaylistRendererThumbnail struct {
|
|
Thumbnails []Thumbnail `json:"thumbnails"`
|
|
}
|
|
|
|
// GetThumbnails returns the value of Thumbnails.
|
|
func (s *CompactPlaylistRendererThumbnail) GetThumbnails() []Thumbnail {
|
|
return s.Thumbnails
|
|
}
|
|
|
|
// SetThumbnails sets the value of Thumbnails.
|
|
func (s *CompactPlaylistRendererThumbnail) SetThumbnails(val []Thumbnail) {
|
|
s.Thumbnails = val
|
|
}
|
|
|
|
type CompactPlaylistRendererTvBanner struct {
|
|
Thumbnails []Thumbnail `json:"thumbnails"`
|
|
}
|
|
|
|
// GetThumbnails returns the value of Thumbnails.
|
|
func (s *CompactPlaylistRendererTvBanner) GetThumbnails() []Thumbnail {
|
|
return s.Thumbnails
|
|
}
|
|
|
|
// SetThumbnails sets the value of Thumbnails.
|
|
func (s *CompactPlaylistRendererTvBanner) SetThumbnails(val []Thumbnail) {
|
|
s.Thumbnails = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CompactVideoRenderer
|
|
type CompactVideoRenderer struct {
|
|
VideoId string `json:"videoId"`
|
|
Thumbnail OptCompactVideoRendererThumbnail `json:"thumbnail"`
|
|
Title Text `json:"title"`
|
|
LongBylineText OptText `json:"longBylineText"`
|
|
PublishedTimeText OptText `json:"publishedTimeText"`
|
|
ViewCountText Text `json:"viewCountText"`
|
|
LengthText OptText `json:"lengthText"`
|
|
NavigationEndpoint OptNavigationEndpoint `json:"navigationEndpoint"`
|
|
ShortBylineText OptText `json:"shortBylineText"`
|
|
ChannelThumbnail OptCompactVideoRendererChannelThumbnail `json:"channelThumbnail"`
|
|
TrackingParams string `json:"trackingParams"`
|
|
ShortViewCountText OptText `json:"shortViewCountText"`
|
|
Accessibility OptAccessibility `json:"accessibility"`
|
|
KidsVideoOwnerExtension KidsVideoOwnerExtension `json:"kidsVideoOwnerExtension"`
|
|
}
|
|
|
|
// GetVideoId returns the value of VideoId.
|
|
func (s *CompactVideoRenderer) GetVideoId() string {
|
|
return s.VideoId
|
|
}
|
|
|
|
// GetThumbnail returns the value of Thumbnail.
|
|
func (s *CompactVideoRenderer) GetThumbnail() OptCompactVideoRendererThumbnail {
|
|
return s.Thumbnail
|
|
}
|
|
|
|
// GetTitle returns the value of Title.
|
|
func (s *CompactVideoRenderer) GetTitle() Text {
|
|
return s.Title
|
|
}
|
|
|
|
// GetLongBylineText returns the value of LongBylineText.
|
|
func (s *CompactVideoRenderer) GetLongBylineText() OptText {
|
|
return s.LongBylineText
|
|
}
|
|
|
|
// GetPublishedTimeText returns the value of PublishedTimeText.
|
|
func (s *CompactVideoRenderer) GetPublishedTimeText() OptText {
|
|
return s.PublishedTimeText
|
|
}
|
|
|
|
// GetViewCountText returns the value of ViewCountText.
|
|
func (s *CompactVideoRenderer) GetViewCountText() Text {
|
|
return s.ViewCountText
|
|
}
|
|
|
|
// GetLengthText returns the value of LengthText.
|
|
func (s *CompactVideoRenderer) GetLengthText() OptText {
|
|
return s.LengthText
|
|
}
|
|
|
|
// GetNavigationEndpoint returns the value of NavigationEndpoint.
|
|
func (s *CompactVideoRenderer) GetNavigationEndpoint() OptNavigationEndpoint {
|
|
return s.NavigationEndpoint
|
|
}
|
|
|
|
// GetShortBylineText returns the value of ShortBylineText.
|
|
func (s *CompactVideoRenderer) GetShortBylineText() OptText {
|
|
return s.ShortBylineText
|
|
}
|
|
|
|
// GetChannelThumbnail returns the value of ChannelThumbnail.
|
|
func (s *CompactVideoRenderer) GetChannelThumbnail() OptCompactVideoRendererChannelThumbnail {
|
|
return s.ChannelThumbnail
|
|
}
|
|
|
|
// GetTrackingParams returns the value of TrackingParams.
|
|
func (s *CompactVideoRenderer) GetTrackingParams() string {
|
|
return s.TrackingParams
|
|
}
|
|
|
|
// GetShortViewCountText returns the value of ShortViewCountText.
|
|
func (s *CompactVideoRenderer) GetShortViewCountText() OptText {
|
|
return s.ShortViewCountText
|
|
}
|
|
|
|
// GetAccessibility returns the value of Accessibility.
|
|
func (s *CompactVideoRenderer) GetAccessibility() OptAccessibility {
|
|
return s.Accessibility
|
|
}
|
|
|
|
// GetKidsVideoOwnerExtension returns the value of KidsVideoOwnerExtension.
|
|
func (s *CompactVideoRenderer) GetKidsVideoOwnerExtension() KidsVideoOwnerExtension {
|
|
return s.KidsVideoOwnerExtension
|
|
}
|
|
|
|
// SetVideoId sets the value of VideoId.
|
|
func (s *CompactVideoRenderer) SetVideoId(val string) {
|
|
s.VideoId = val
|
|
}
|
|
|
|
// SetThumbnail sets the value of Thumbnail.
|
|
func (s *CompactVideoRenderer) SetThumbnail(val OptCompactVideoRendererThumbnail) {
|
|
s.Thumbnail = val
|
|
}
|
|
|
|
// SetTitle sets the value of Title.
|
|
func (s *CompactVideoRenderer) SetTitle(val Text) {
|
|
s.Title = val
|
|
}
|
|
|
|
// SetLongBylineText sets the value of LongBylineText.
|
|
func (s *CompactVideoRenderer) SetLongBylineText(val OptText) {
|
|
s.LongBylineText = val
|
|
}
|
|
|
|
// SetPublishedTimeText sets the value of PublishedTimeText.
|
|
func (s *CompactVideoRenderer) SetPublishedTimeText(val OptText) {
|
|
s.PublishedTimeText = val
|
|
}
|
|
|
|
// SetViewCountText sets the value of ViewCountText.
|
|
func (s *CompactVideoRenderer) SetViewCountText(val Text) {
|
|
s.ViewCountText = val
|
|
}
|
|
|
|
// SetLengthText sets the value of LengthText.
|
|
func (s *CompactVideoRenderer) SetLengthText(val OptText) {
|
|
s.LengthText = val
|
|
}
|
|
|
|
// SetNavigationEndpoint sets the value of NavigationEndpoint.
|
|
func (s *CompactVideoRenderer) SetNavigationEndpoint(val OptNavigationEndpoint) {
|
|
s.NavigationEndpoint = val
|
|
}
|
|
|
|
// SetShortBylineText sets the value of ShortBylineText.
|
|
func (s *CompactVideoRenderer) SetShortBylineText(val OptText) {
|
|
s.ShortBylineText = val
|
|
}
|
|
|
|
// SetChannelThumbnail sets the value of ChannelThumbnail.
|
|
func (s *CompactVideoRenderer) SetChannelThumbnail(val OptCompactVideoRendererChannelThumbnail) {
|
|
s.ChannelThumbnail = val
|
|
}
|
|
|
|
// SetTrackingParams sets the value of TrackingParams.
|
|
func (s *CompactVideoRenderer) SetTrackingParams(val string) {
|
|
s.TrackingParams = val
|
|
}
|
|
|
|
// SetShortViewCountText sets the value of ShortViewCountText.
|
|
func (s *CompactVideoRenderer) SetShortViewCountText(val OptText) {
|
|
s.ShortViewCountText = val
|
|
}
|
|
|
|
// SetAccessibility sets the value of Accessibility.
|
|
func (s *CompactVideoRenderer) SetAccessibility(val OptAccessibility) {
|
|
s.Accessibility = val
|
|
}
|
|
|
|
// SetKidsVideoOwnerExtension sets the value of KidsVideoOwnerExtension.
|
|
func (s *CompactVideoRenderer) SetKidsVideoOwnerExtension(val KidsVideoOwnerExtension) {
|
|
s.KidsVideoOwnerExtension = val
|
|
}
|
|
|
|
type CompactVideoRendererChannelThumbnail struct {
|
|
Thumbnails []Thumbnail `json:"thumbnails"`
|
|
}
|
|
|
|
// GetThumbnails returns the value of Thumbnails.
|
|
func (s *CompactVideoRendererChannelThumbnail) GetThumbnails() []Thumbnail {
|
|
return s.Thumbnails
|
|
}
|
|
|
|
// SetThumbnails sets the value of Thumbnails.
|
|
func (s *CompactVideoRendererChannelThumbnail) SetThumbnails(val []Thumbnail) {
|
|
s.Thumbnails = val
|
|
}
|
|
|
|
type CompactVideoRendererThumbnail struct {
|
|
Thumbnails []Thumbnail `json:"thumbnails"`
|
|
}
|
|
|
|
// GetThumbnails returns the value of Thumbnails.
|
|
func (s *CompactVideoRendererThumbnail) GetThumbnails() []Thumbnail {
|
|
return s.Thumbnails
|
|
}
|
|
|
|
// SetThumbnails sets the value of Thumbnails.
|
|
func (s *CompactVideoRendererThumbnail) SetThumbnails(val []Thumbnail) {
|
|
s.Thumbnails = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Error
|
|
type Error struct {
|
|
Message string `json:"message"`
|
|
Domain OptString `json:"domain"`
|
|
Reason OptString `json:"reason"`
|
|
}
|
|
|
|
// GetMessage returns the value of Message.
|
|
func (s *Error) GetMessage() string {
|
|
return s.Message
|
|
}
|
|
|
|
// GetDomain returns the value of Domain.
|
|
func (s *Error) GetDomain() OptString {
|
|
return s.Domain
|
|
}
|
|
|
|
// GetReason returns the value of Reason.
|
|
func (s *Error) GetReason() OptString {
|
|
return s.Reason
|
|
}
|
|
|
|
// SetMessage sets the value of Message.
|
|
func (s *Error) SetMessage(val string) {
|
|
s.Message = val
|
|
}
|
|
|
|
// SetDomain sets the value of Domain.
|
|
func (s *Error) SetDomain(val OptString) {
|
|
s.Domain = val
|
|
}
|
|
|
|
// SetReason sets the value of Reason.
|
|
func (s *Error) SetReason(val OptString) {
|
|
s.Reason = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ErrorResponsePayload
|
|
type ErrorResponsePayload struct {
|
|
Error ErrorResponsePayloadError `json:"error"`
|
|
}
|
|
|
|
// GetError returns the value of Error.
|
|
func (s *ErrorResponsePayload) GetError() ErrorResponsePayloadError {
|
|
return s.Error
|
|
}
|
|
|
|
// SetError sets the value of Error.
|
|
func (s *ErrorResponsePayload) SetError(val ErrorResponsePayloadError) {
|
|
s.Error = val
|
|
}
|
|
|
|
type ErrorResponsePayloadError struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
Errors []Error `json:"errors"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
// GetCode returns the value of Code.
|
|
func (s *ErrorResponsePayloadError) GetCode() int {
|
|
return s.Code
|
|
}
|
|
|
|
// GetMessage returns the value of Message.
|
|
func (s *ErrorResponsePayloadError) GetMessage() string {
|
|
return s.Message
|
|
}
|
|
|
|
// GetErrors returns the value of Errors.
|
|
func (s *ErrorResponsePayloadError) GetErrors() []Error {
|
|
return s.Errors
|
|
}
|
|
|
|
// GetStatus returns the value of Status.
|
|
func (s *ErrorResponsePayloadError) GetStatus() string {
|
|
return s.Status
|
|
}
|
|
|
|
// SetCode sets the value of Code.
|
|
func (s *ErrorResponsePayloadError) SetCode(val int) {
|
|
s.Code = val
|
|
}
|
|
|
|
// SetMessage sets the value of Message.
|
|
func (s *ErrorResponsePayloadError) SetMessage(val string) {
|
|
s.Message = val
|
|
}
|
|
|
|
// SetErrors sets the value of Errors.
|
|
func (s *ErrorResponsePayloadError) SetErrors(val []Error) {
|
|
s.Errors = val
|
|
}
|
|
|
|
// SetStatus sets the value of Status.
|
|
func (s *ErrorResponsePayloadError) SetStatus(val string) {
|
|
s.Status = val
|
|
}
|
|
|
|
// ErrorResponsePayloadStatusCode wraps ErrorResponsePayload with StatusCode.
|
|
type ErrorResponsePayloadStatusCode struct {
|
|
StatusCode int
|
|
Response ErrorResponsePayload
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *ErrorResponsePayloadStatusCode) GetStatusCode() int {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *ErrorResponsePayloadStatusCode) GetResponse() ErrorResponsePayload {
|
|
return s.Response
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *ErrorResponsePayloadStatusCode) SetStatusCode(val int) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *ErrorResponsePayloadStatusCode) SetResponse(val ErrorResponsePayload) {
|
|
s.Response = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ItemSectionRenderer
|
|
type ItemSectionRenderer struct {
|
|
Contents []ItemSectionRendererContentsItem `json:"contents"`
|
|
TrackingParams string `json:"trackingParams"`
|
|
}
|
|
|
|
// GetContents returns the value of Contents.
|
|
func (s *ItemSectionRenderer) GetContents() []ItemSectionRendererContentsItem {
|
|
return s.Contents
|
|
}
|
|
|
|
// GetTrackingParams returns the value of TrackingParams.
|
|
func (s *ItemSectionRenderer) GetTrackingParams() string {
|
|
return s.TrackingParams
|
|
}
|
|
|
|
// SetContents sets the value of Contents.
|
|
func (s *ItemSectionRenderer) SetContents(val []ItemSectionRendererContentsItem) {
|
|
s.Contents = val
|
|
}
|
|
|
|
// SetTrackingParams sets the value of TrackingParams.
|
|
func (s *ItemSectionRenderer) SetTrackingParams(val string) {
|
|
s.TrackingParams = val
|
|
}
|
|
|
|
type ItemSectionRendererContentsItem struct {
|
|
CompactPlaylistRenderer OptCompactPlaylistRenderer `json:"compactPlaylistRenderer"`
|
|
CompactChannelRenderer OptCompactChannelRenderer `json:"compactChannelRenderer"`
|
|
CompactVideoRenderer OptCompactVideoRenderer `json:"compactVideoRenderer"`
|
|
}
|
|
|
|
// GetCompactPlaylistRenderer returns the value of CompactPlaylistRenderer.
|
|
func (s *ItemSectionRendererContentsItem) GetCompactPlaylistRenderer() OptCompactPlaylistRenderer {
|
|
return s.CompactPlaylistRenderer
|
|
}
|
|
|
|
// GetCompactChannelRenderer returns the value of CompactChannelRenderer.
|
|
func (s *ItemSectionRendererContentsItem) GetCompactChannelRenderer() OptCompactChannelRenderer {
|
|
return s.CompactChannelRenderer
|
|
}
|
|
|
|
// GetCompactVideoRenderer returns the value of CompactVideoRenderer.
|
|
func (s *ItemSectionRendererContentsItem) GetCompactVideoRenderer() OptCompactVideoRenderer {
|
|
return s.CompactVideoRenderer
|
|
}
|
|
|
|
// SetCompactPlaylistRenderer sets the value of CompactPlaylistRenderer.
|
|
func (s *ItemSectionRendererContentsItem) SetCompactPlaylistRenderer(val OptCompactPlaylistRenderer) {
|
|
s.CompactPlaylistRenderer = val
|
|
}
|
|
|
|
// SetCompactChannelRenderer sets the value of CompactChannelRenderer.
|
|
func (s *ItemSectionRendererContentsItem) SetCompactChannelRenderer(val OptCompactChannelRenderer) {
|
|
s.CompactChannelRenderer = val
|
|
}
|
|
|
|
// SetCompactVideoRenderer sets the value of CompactVideoRenderer.
|
|
func (s *ItemSectionRendererContentsItem) SetCompactVideoRenderer(val OptCompactVideoRenderer) {
|
|
s.CompactVideoRenderer = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/KeyStringValue
|
|
type KeyStringValue struct {
|
|
Key string `json:"key"`
|
|
Value string `json:"value"`
|
|
}
|
|
|
|
// GetKey returns the value of Key.
|
|
func (s *KeyStringValue) GetKey() string {
|
|
return s.Key
|
|
}
|
|
|
|
// GetValue returns the value of Value.
|
|
func (s *KeyStringValue) GetValue() string {
|
|
return s.Value
|
|
}
|
|
|
|
// SetKey sets the value of Key.
|
|
func (s *KeyStringValue) SetKey(val string) {
|
|
s.Key = val
|
|
}
|
|
|
|
// SetValue sets the value of Value.
|
|
func (s *KeyStringValue) SetValue(val string) {
|
|
s.Value = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/KidsAppCategorySettings
|
|
type KidsAppCategorySettings struct {
|
|
EnabledCategories []string `json:"enabledCategories"`
|
|
}
|
|
|
|
// GetEnabledCategories returns the value of EnabledCategories.
|
|
func (s *KidsAppCategorySettings) GetEnabledCategories() []string {
|
|
return s.EnabledCategories
|
|
}
|
|
|
|
// SetEnabledCategories sets the value of EnabledCategories.
|
|
func (s *KidsAppCategorySettings) SetEnabledCategories(val []string) {
|
|
s.EnabledCategories = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/KidsAppContentSettings
|
|
type KidsAppContentSettings struct {
|
|
CorpusPreference KidsAppContentSettingsCorpusPreference `json:"corpusPreference"`
|
|
KidsNoSearchMode KidsAppContentSettingsKidsNoSearchMode `json:"kidsNoSearchMode"`
|
|
}
|
|
|
|
// GetCorpusPreference returns the value of CorpusPreference.
|
|
func (s *KidsAppContentSettings) GetCorpusPreference() KidsAppContentSettingsCorpusPreference {
|
|
return s.CorpusPreference
|
|
}
|
|
|
|
// GetKidsNoSearchMode returns the value of KidsNoSearchMode.
|
|
func (s *KidsAppContentSettings) GetKidsNoSearchMode() KidsAppContentSettingsKidsNoSearchMode {
|
|
return s.KidsNoSearchMode
|
|
}
|
|
|
|
// SetCorpusPreference sets the value of CorpusPreference.
|
|
func (s *KidsAppContentSettings) SetCorpusPreference(val KidsAppContentSettingsCorpusPreference) {
|
|
s.CorpusPreference = val
|
|
}
|
|
|
|
// SetKidsNoSearchMode sets the value of KidsNoSearchMode.
|
|
func (s *KidsAppContentSettings) SetKidsNoSearchMode(val KidsAppContentSettingsKidsNoSearchMode) {
|
|
s.KidsNoSearchMode = val
|
|
}
|
|
|
|
type KidsAppContentSettingsCorpusPreference string
|
|
|
|
const (
|
|
KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEUNKNOWN KidsAppContentSettingsCorpusPreference = "KIDS_CORPUS_PREFERENCE_UNKNOWN"
|
|
KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEYOUNGER KidsAppContentSettingsCorpusPreference = "KIDS_CORPUS_PREFERENCE_YOUNGER"
|
|
KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCETWEEN KidsAppContentSettingsCorpusPreference = "KIDS_CORPUS_PREFERENCE_TWEEN"
|
|
KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPAMYOUNGER KidsAppContentSettingsCorpusPreference = "KIDS_CORPUS_PREFERENCE_PAM_YOUNGER"
|
|
KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPAMTWEEN KidsAppContentSettingsCorpusPreference = "KIDS_CORPUS_PREFERENCE_PAM_TWEEN"
|
|
KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPRESCHOOL KidsAppContentSettingsCorpusPreference = "KIDS_CORPUS_PREFERENCE_PRESCHOOL"
|
|
)
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s KidsAppContentSettingsCorpusPreference) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEUNKNOWN:
|
|
return []byte(s), nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEYOUNGER:
|
|
return []byte(s), nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCETWEEN:
|
|
return []byte(s), nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPAMYOUNGER:
|
|
return []byte(s), nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPAMTWEEN:
|
|
return []byte(s), nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPRESCHOOL:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *KidsAppContentSettingsCorpusPreference) UnmarshalText(data []byte) error {
|
|
switch KidsAppContentSettingsCorpusPreference(data) {
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEUNKNOWN:
|
|
*s = KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEUNKNOWN
|
|
return nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEYOUNGER:
|
|
*s = KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEYOUNGER
|
|
return nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCETWEEN:
|
|
*s = KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCETWEEN
|
|
return nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPAMYOUNGER:
|
|
*s = KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPAMYOUNGER
|
|
return nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPAMTWEEN:
|
|
*s = KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPAMTWEEN
|
|
return nil
|
|
case KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPRESCHOOL:
|
|
*s = KidsAppContentSettingsCorpusPreferenceKIDSCORPUSPREFERENCEPRESCHOOL
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type KidsAppContentSettingsKidsNoSearchMode string
|
|
|
|
const (
|
|
KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEUNKNOWN KidsAppContentSettingsKidsNoSearchMode = "YT_KIDS_NO_SEARCH_MODE_UNKNOWN"
|
|
KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEON KidsAppContentSettingsKidsNoSearchMode = "YT_KIDS_NO_SEARCH_MODE_ON"
|
|
KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEOFF KidsAppContentSettingsKidsNoSearchMode = "YT_KIDS_NO_SEARCH_MODE_OFF"
|
|
)
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s KidsAppContentSettingsKidsNoSearchMode) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEUNKNOWN:
|
|
return []byte(s), nil
|
|
case KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEON:
|
|
return []byte(s), nil
|
|
case KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEOFF:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *KidsAppContentSettingsKidsNoSearchMode) UnmarshalText(data []byte) error {
|
|
switch KidsAppContentSettingsKidsNoSearchMode(data) {
|
|
case KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEUNKNOWN:
|
|
*s = KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEUNKNOWN
|
|
return nil
|
|
case KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEON:
|
|
*s = KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEON
|
|
return nil
|
|
case KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEOFF:
|
|
*s = KidsAppContentSettingsKidsNoSearchModeYTKIDSNOSEARCHMODEOFF
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Kids application configuration.
|
|
// Ref: #/components/schemas/KidsAppInfo
|
|
type KidsAppInfo struct {
|
|
ContentSettings OptKidsAppContentSettings `json:"contentSettings"`
|
|
CategorySettings OptKidsAppCategorySettings `json:"categorySettings"`
|
|
}
|
|
|
|
// GetContentSettings returns the value of ContentSettings.
|
|
func (s *KidsAppInfo) GetContentSettings() OptKidsAppContentSettings {
|
|
return s.ContentSettings
|
|
}
|
|
|
|
// GetCategorySettings returns the value of CategorySettings.
|
|
func (s *KidsAppInfo) GetCategorySettings() OptKidsAppCategorySettings {
|
|
return s.CategorySettings
|
|
}
|
|
|
|
// SetContentSettings sets the value of ContentSettings.
|
|
func (s *KidsAppInfo) SetContentSettings(val OptKidsAppContentSettings) {
|
|
s.ContentSettings = val
|
|
}
|
|
|
|
// SetCategorySettings sets the value of CategorySettings.
|
|
func (s *KidsAppInfo) SetCategorySettings(val OptKidsAppCategorySettings) {
|
|
s.CategorySettings = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/KidsVideoOwnerExtension
|
|
type KidsVideoOwnerExtension struct {
|
|
ExternalChannelId string `json:"externalChannelId"`
|
|
}
|
|
|
|
// GetExternalChannelId returns the value of ExternalChannelId.
|
|
func (s *KidsVideoOwnerExtension) GetExternalChannelId() string {
|
|
return s.ExternalChannelId
|
|
}
|
|
|
|
// SetExternalChannelId sets the value of ExternalChannelId.
|
|
func (s *KidsVideoOwnerExtension) SetExternalChannelId(val string) {
|
|
s.ExternalChannelId = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/NavigationEndpoint
|
|
type NavigationEndpoint struct {
|
|
ClickTrackingParams OptString `json:"clickTrackingParams"`
|
|
WatchEndpoint OptWatchEndpoint `json:"watchEndpoint"`
|
|
BrowseEndpoint OptBrowseEndpoint `json:"browseEndpoint"`
|
|
}
|
|
|
|
// GetClickTrackingParams returns the value of ClickTrackingParams.
|
|
func (s *NavigationEndpoint) GetClickTrackingParams() OptString {
|
|
return s.ClickTrackingParams
|
|
}
|
|
|
|
// GetWatchEndpoint returns the value of WatchEndpoint.
|
|
func (s *NavigationEndpoint) GetWatchEndpoint() OptWatchEndpoint {
|
|
return s.WatchEndpoint
|
|
}
|
|
|
|
// GetBrowseEndpoint returns the value of BrowseEndpoint.
|
|
func (s *NavigationEndpoint) GetBrowseEndpoint() OptBrowseEndpoint {
|
|
return s.BrowseEndpoint
|
|
}
|
|
|
|
// SetClickTrackingParams sets the value of ClickTrackingParams.
|
|
func (s *NavigationEndpoint) SetClickTrackingParams(val OptString) {
|
|
s.ClickTrackingParams = val
|
|
}
|
|
|
|
// SetWatchEndpoint sets the value of WatchEndpoint.
|
|
func (s *NavigationEndpoint) SetWatchEndpoint(val OptWatchEndpoint) {
|
|
s.WatchEndpoint = val
|
|
}
|
|
|
|
// SetBrowseEndpoint sets the value of BrowseEndpoint.
|
|
func (s *NavigationEndpoint) SetBrowseEndpoint(val OptBrowseEndpoint) {
|
|
s.BrowseEndpoint = val
|
|
}
|
|
|
|
// NewOptAccessibility returns new OptAccessibility with value set to v.
|
|
func NewOptAccessibility(v Accessibility) OptAccessibility {
|
|
return OptAccessibility{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptAccessibility is optional Accessibility.
|
|
type OptAccessibility struct {
|
|
Value Accessibility
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptAccessibility was set.
|
|
func (o OptAccessibility) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptAccessibility) Reset() {
|
|
var v Accessibility
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptAccessibility) SetTo(v Accessibility) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptAccessibility) Get() (v Accessibility, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptAccessibility) Or(d Accessibility) Accessibility {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptAccessibilityData returns new OptAccessibilityData with value set to v.
|
|
func NewOptAccessibilityData(v AccessibilityData) OptAccessibilityData {
|
|
return OptAccessibilityData{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptAccessibilityData is optional AccessibilityData.
|
|
type OptAccessibilityData struct {
|
|
Value AccessibilityData
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptAccessibilityData was set.
|
|
func (o OptAccessibilityData) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptAccessibilityData) Reset() {
|
|
var v AccessibilityData
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptAccessibilityData) SetTo(v AccessibilityData) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptAccessibilityData) Get() (v AccessibilityData, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptAccessibilityData) Or(d AccessibilityData) AccessibilityData {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptAnchoredSectionRenderer returns new OptAnchoredSectionRenderer with value set to v.
|
|
func NewOptAnchoredSectionRenderer(v AnchoredSectionRenderer) OptAnchoredSectionRenderer {
|
|
return OptAnchoredSectionRenderer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptAnchoredSectionRenderer is optional AnchoredSectionRenderer.
|
|
type OptAnchoredSectionRenderer struct {
|
|
Value AnchoredSectionRenderer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptAnchoredSectionRenderer was set.
|
|
func (o OptAnchoredSectionRenderer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptAnchoredSectionRenderer) Reset() {
|
|
var v AnchoredSectionRenderer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptAnchoredSectionRenderer) SetTo(v AnchoredSectionRenderer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptAnchoredSectionRenderer) Get() (v AnchoredSectionRenderer, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptAnchoredSectionRenderer) Or(d AnchoredSectionRenderer) AnchoredSectionRenderer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptAnchoredSectionRendererContent returns new OptAnchoredSectionRendererContent with value set to v.
|
|
func NewOptAnchoredSectionRendererContent(v AnchoredSectionRendererContent) OptAnchoredSectionRendererContent {
|
|
return OptAnchoredSectionRendererContent{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptAnchoredSectionRendererContent is optional AnchoredSectionRendererContent.
|
|
type OptAnchoredSectionRendererContent struct {
|
|
Value AnchoredSectionRendererContent
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptAnchoredSectionRendererContent was set.
|
|
func (o OptAnchoredSectionRendererContent) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptAnchoredSectionRendererContent) Reset() {
|
|
var v AnchoredSectionRendererContent
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptAnchoredSectionRendererContent) SetTo(v AnchoredSectionRendererContent) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptAnchoredSectionRendererContent) Get() (v AnchoredSectionRendererContent, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptAnchoredSectionRendererContent) Or(d AnchoredSectionRendererContent) AnchoredSectionRendererContent {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBrowseEndpoint returns new OptBrowseEndpoint with value set to v.
|
|
func NewOptBrowseEndpoint(v BrowseEndpoint) OptBrowseEndpoint {
|
|
return OptBrowseEndpoint{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBrowseEndpoint is optional BrowseEndpoint.
|
|
type OptBrowseEndpoint struct {
|
|
Value BrowseEndpoint
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBrowseEndpoint was set.
|
|
func (o OptBrowseEndpoint) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBrowseEndpoint) Reset() {
|
|
var v BrowseEndpoint
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBrowseEndpoint) SetTo(v BrowseEndpoint) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBrowseEndpoint) Get() (v BrowseEndpoint, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptBrowseEndpoint) Or(d BrowseEndpoint) BrowseEndpoint {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCategoriesHeaderRenderer returns new OptCategoriesHeaderRenderer with value set to v.
|
|
func NewOptCategoriesHeaderRenderer(v CategoriesHeaderRenderer) OptCategoriesHeaderRenderer {
|
|
return OptCategoriesHeaderRenderer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCategoriesHeaderRenderer is optional CategoriesHeaderRenderer.
|
|
type OptCategoriesHeaderRenderer struct {
|
|
Value CategoriesHeaderRenderer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCategoriesHeaderRenderer was set.
|
|
func (o OptCategoriesHeaderRenderer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCategoriesHeaderRenderer) Reset() {
|
|
var v CategoriesHeaderRenderer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCategoriesHeaderRenderer) SetTo(v CategoriesHeaderRenderer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCategoriesHeaderRenderer) Get() (v CategoriesHeaderRenderer, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCategoriesHeaderRenderer) Or(d CategoriesHeaderRenderer) CategoriesHeaderRenderer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCategoryAssets returns new OptCategoryAssets with value set to v.
|
|
func NewOptCategoryAssets(v CategoryAssets) OptCategoryAssets {
|
|
return OptCategoryAssets{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCategoryAssets is optional CategoryAssets.
|
|
type OptCategoryAssets struct {
|
|
Value CategoryAssets
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCategoryAssets was set.
|
|
func (o OptCategoryAssets) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCategoryAssets) Reset() {
|
|
var v CategoryAssets
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCategoryAssets) SetTo(v CategoryAssets) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCategoryAssets) Get() (v CategoryAssets, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCategoryAssets) Or(d CategoryAssets) CategoryAssets {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCompactChannelRenderer returns new OptCompactChannelRenderer with value set to v.
|
|
func NewOptCompactChannelRenderer(v CompactChannelRenderer) OptCompactChannelRenderer {
|
|
return OptCompactChannelRenderer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCompactChannelRenderer is optional CompactChannelRenderer.
|
|
type OptCompactChannelRenderer struct {
|
|
Value CompactChannelRenderer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCompactChannelRenderer was set.
|
|
func (o OptCompactChannelRenderer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCompactChannelRenderer) Reset() {
|
|
var v CompactChannelRenderer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCompactChannelRenderer) SetTo(v CompactChannelRenderer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCompactChannelRenderer) Get() (v CompactChannelRenderer, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCompactChannelRenderer) Or(d CompactChannelRenderer) CompactChannelRenderer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCompactChannelRendererThumbnail returns new OptCompactChannelRendererThumbnail with value set to v.
|
|
func NewOptCompactChannelRendererThumbnail(v CompactChannelRendererThumbnail) OptCompactChannelRendererThumbnail {
|
|
return OptCompactChannelRendererThumbnail{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCompactChannelRendererThumbnail is optional CompactChannelRendererThumbnail.
|
|
type OptCompactChannelRendererThumbnail struct {
|
|
Value CompactChannelRendererThumbnail
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCompactChannelRendererThumbnail was set.
|
|
func (o OptCompactChannelRendererThumbnail) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCompactChannelRendererThumbnail) Reset() {
|
|
var v CompactChannelRendererThumbnail
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCompactChannelRendererThumbnail) SetTo(v CompactChannelRendererThumbnail) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCompactChannelRendererThumbnail) Get() (v CompactChannelRendererThumbnail, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCompactChannelRendererThumbnail) Or(d CompactChannelRendererThumbnail) CompactChannelRendererThumbnail {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCompactPlaylistRenderer returns new OptCompactPlaylistRenderer with value set to v.
|
|
func NewOptCompactPlaylistRenderer(v CompactPlaylistRenderer) OptCompactPlaylistRenderer {
|
|
return OptCompactPlaylistRenderer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCompactPlaylistRenderer is optional CompactPlaylistRenderer.
|
|
type OptCompactPlaylistRenderer struct {
|
|
Value CompactPlaylistRenderer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCompactPlaylistRenderer was set.
|
|
func (o OptCompactPlaylistRenderer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCompactPlaylistRenderer) Reset() {
|
|
var v CompactPlaylistRenderer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCompactPlaylistRenderer) SetTo(v CompactPlaylistRenderer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCompactPlaylistRenderer) Get() (v CompactPlaylistRenderer, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCompactPlaylistRenderer) Or(d CompactPlaylistRenderer) CompactPlaylistRenderer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCompactPlaylistRendererThumbnail returns new OptCompactPlaylistRendererThumbnail with value set to v.
|
|
func NewOptCompactPlaylistRendererThumbnail(v CompactPlaylistRendererThumbnail) OptCompactPlaylistRendererThumbnail {
|
|
return OptCompactPlaylistRendererThumbnail{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCompactPlaylistRendererThumbnail is optional CompactPlaylistRendererThumbnail.
|
|
type OptCompactPlaylistRendererThumbnail struct {
|
|
Value CompactPlaylistRendererThumbnail
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCompactPlaylistRendererThumbnail was set.
|
|
func (o OptCompactPlaylistRendererThumbnail) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCompactPlaylistRendererThumbnail) Reset() {
|
|
var v CompactPlaylistRendererThumbnail
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCompactPlaylistRendererThumbnail) SetTo(v CompactPlaylistRendererThumbnail) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCompactPlaylistRendererThumbnail) Get() (v CompactPlaylistRendererThumbnail, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCompactPlaylistRendererThumbnail) Or(d CompactPlaylistRendererThumbnail) CompactPlaylistRendererThumbnail {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCompactPlaylistRendererTvBanner returns new OptCompactPlaylistRendererTvBanner with value set to v.
|
|
func NewOptCompactPlaylistRendererTvBanner(v CompactPlaylistRendererTvBanner) OptCompactPlaylistRendererTvBanner {
|
|
return OptCompactPlaylistRendererTvBanner{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCompactPlaylistRendererTvBanner is optional CompactPlaylistRendererTvBanner.
|
|
type OptCompactPlaylistRendererTvBanner struct {
|
|
Value CompactPlaylistRendererTvBanner
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCompactPlaylistRendererTvBanner was set.
|
|
func (o OptCompactPlaylistRendererTvBanner) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCompactPlaylistRendererTvBanner) Reset() {
|
|
var v CompactPlaylistRendererTvBanner
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCompactPlaylistRendererTvBanner) SetTo(v CompactPlaylistRendererTvBanner) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCompactPlaylistRendererTvBanner) Get() (v CompactPlaylistRendererTvBanner, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCompactPlaylistRendererTvBanner) Or(d CompactPlaylistRendererTvBanner) CompactPlaylistRendererTvBanner {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCompactVideoRenderer returns new OptCompactVideoRenderer with value set to v.
|
|
func NewOptCompactVideoRenderer(v CompactVideoRenderer) OptCompactVideoRenderer {
|
|
return OptCompactVideoRenderer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCompactVideoRenderer is optional CompactVideoRenderer.
|
|
type OptCompactVideoRenderer struct {
|
|
Value CompactVideoRenderer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCompactVideoRenderer was set.
|
|
func (o OptCompactVideoRenderer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCompactVideoRenderer) Reset() {
|
|
var v CompactVideoRenderer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCompactVideoRenderer) SetTo(v CompactVideoRenderer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCompactVideoRenderer) Get() (v CompactVideoRenderer, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCompactVideoRenderer) Or(d CompactVideoRenderer) CompactVideoRenderer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCompactVideoRendererChannelThumbnail returns new OptCompactVideoRendererChannelThumbnail with value set to v.
|
|
func NewOptCompactVideoRendererChannelThumbnail(v CompactVideoRendererChannelThumbnail) OptCompactVideoRendererChannelThumbnail {
|
|
return OptCompactVideoRendererChannelThumbnail{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCompactVideoRendererChannelThumbnail is optional CompactVideoRendererChannelThumbnail.
|
|
type OptCompactVideoRendererChannelThumbnail struct {
|
|
Value CompactVideoRendererChannelThumbnail
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCompactVideoRendererChannelThumbnail was set.
|
|
func (o OptCompactVideoRendererChannelThumbnail) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCompactVideoRendererChannelThumbnail) Reset() {
|
|
var v CompactVideoRendererChannelThumbnail
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCompactVideoRendererChannelThumbnail) SetTo(v CompactVideoRendererChannelThumbnail) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCompactVideoRendererChannelThumbnail) Get() (v CompactVideoRendererChannelThumbnail, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCompactVideoRendererChannelThumbnail) Or(d CompactVideoRendererChannelThumbnail) CompactVideoRendererChannelThumbnail {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCompactVideoRendererThumbnail returns new OptCompactVideoRendererThumbnail with value set to v.
|
|
func NewOptCompactVideoRendererThumbnail(v CompactVideoRendererThumbnail) OptCompactVideoRendererThumbnail {
|
|
return OptCompactVideoRendererThumbnail{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCompactVideoRendererThumbnail is optional CompactVideoRendererThumbnail.
|
|
type OptCompactVideoRendererThumbnail struct {
|
|
Value CompactVideoRendererThumbnail
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCompactVideoRendererThumbnail was set.
|
|
func (o OptCompactVideoRendererThumbnail) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCompactVideoRendererThumbnail) Reset() {
|
|
var v CompactVideoRendererThumbnail
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCompactVideoRendererThumbnail) SetTo(v CompactVideoRendererThumbnail) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCompactVideoRendererThumbnail) Get() (v CompactVideoRendererThumbnail, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptCompactVideoRendererThumbnail) Or(d CompactVideoRendererThumbnail) CompactVideoRendererThumbnail {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptInt returns new OptInt with value set to v.
|
|
func NewOptInt(v int) OptInt {
|
|
return OptInt{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptInt is optional int.
|
|
type OptInt struct {
|
|
Value int
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptInt was set.
|
|
func (o OptInt) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptInt) Reset() {
|
|
var v int
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptInt) SetTo(v int) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptInt) Get() (v int, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptInt) Or(d int) int {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptItemSectionRenderer returns new OptItemSectionRenderer with value set to v.
|
|
func NewOptItemSectionRenderer(v ItemSectionRenderer) OptItemSectionRenderer {
|
|
return OptItemSectionRenderer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptItemSectionRenderer is optional ItemSectionRenderer.
|
|
type OptItemSectionRenderer struct {
|
|
Value ItemSectionRenderer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptItemSectionRenderer was set.
|
|
func (o OptItemSectionRenderer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptItemSectionRenderer) Reset() {
|
|
var v ItemSectionRenderer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptItemSectionRenderer) SetTo(v ItemSectionRenderer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptItemSectionRenderer) Get() (v ItemSectionRenderer, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptItemSectionRenderer) Or(d ItemSectionRenderer) ItemSectionRenderer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptKidsAppCategorySettings returns new OptKidsAppCategorySettings with value set to v.
|
|
func NewOptKidsAppCategorySettings(v KidsAppCategorySettings) OptKidsAppCategorySettings {
|
|
return OptKidsAppCategorySettings{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptKidsAppCategorySettings is optional KidsAppCategorySettings.
|
|
type OptKidsAppCategorySettings struct {
|
|
Value KidsAppCategorySettings
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptKidsAppCategorySettings was set.
|
|
func (o OptKidsAppCategorySettings) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptKidsAppCategorySettings) Reset() {
|
|
var v KidsAppCategorySettings
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptKidsAppCategorySettings) SetTo(v KidsAppCategorySettings) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptKidsAppCategorySettings) Get() (v KidsAppCategorySettings, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptKidsAppCategorySettings) Or(d KidsAppCategorySettings) KidsAppCategorySettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptKidsAppContentSettings returns new OptKidsAppContentSettings with value set to v.
|
|
func NewOptKidsAppContentSettings(v KidsAppContentSettings) OptKidsAppContentSettings {
|
|
return OptKidsAppContentSettings{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptKidsAppContentSettings is optional KidsAppContentSettings.
|
|
type OptKidsAppContentSettings struct {
|
|
Value KidsAppContentSettings
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptKidsAppContentSettings was set.
|
|
func (o OptKidsAppContentSettings) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptKidsAppContentSettings) Reset() {
|
|
var v KidsAppContentSettings
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptKidsAppContentSettings) SetTo(v KidsAppContentSettings) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptKidsAppContentSettings) Get() (v KidsAppContentSettings, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptKidsAppContentSettings) Or(d KidsAppContentSettings) KidsAppContentSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNavigationEndpoint returns new OptNavigationEndpoint with value set to v.
|
|
func NewOptNavigationEndpoint(v NavigationEndpoint) OptNavigationEndpoint {
|
|
return OptNavigationEndpoint{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNavigationEndpoint is optional NavigationEndpoint.
|
|
type OptNavigationEndpoint struct {
|
|
Value NavigationEndpoint
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptNavigationEndpoint was set.
|
|
func (o OptNavigationEndpoint) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNavigationEndpoint) Reset() {
|
|
var v NavigationEndpoint
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNavigationEndpoint) SetTo(v NavigationEndpoint) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNavigationEndpoint) Get() (v NavigationEndpoint, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNavigationEndpoint) Or(d NavigationEndpoint) NavigationEndpoint {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptScreenRenderer returns new OptScreenRenderer with value set to v.
|
|
func NewOptScreenRenderer(v ScreenRenderer) OptScreenRenderer {
|
|
return OptScreenRenderer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptScreenRenderer is optional ScreenRenderer.
|
|
type OptScreenRenderer struct {
|
|
Value ScreenRenderer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptScreenRenderer was set.
|
|
func (o OptScreenRenderer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptScreenRenderer) Reset() {
|
|
var v ScreenRenderer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptScreenRenderer) SetTo(v ScreenRenderer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptScreenRenderer) Get() (v ScreenRenderer, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptScreenRenderer) Or(d ScreenRenderer) ScreenRenderer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptSectionListRenderer returns new OptSectionListRenderer with value set to v.
|
|
func NewOptSectionListRenderer(v SectionListRenderer) OptSectionListRenderer {
|
|
return OptSectionListRenderer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptSectionListRenderer is optional SectionListRenderer.
|
|
type OptSectionListRenderer struct {
|
|
Value SectionListRenderer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptSectionListRenderer was set.
|
|
func (o OptSectionListRenderer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptSectionListRenderer) Reset() {
|
|
var v SectionListRenderer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptSectionListRenderer) SetTo(v SectionListRenderer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptSectionListRenderer) Get() (v SectionListRenderer, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptSectionListRenderer) Or(d SectionListRenderer) SectionListRenderer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptString returns new OptString with value set to v.
|
|
func NewOptString(v string) OptString {
|
|
return OptString{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptString is optional string.
|
|
type OptString struct {
|
|
Value string
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptString was set.
|
|
func (o OptString) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptString) Reset() {
|
|
var v string
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptString) SetTo(v string) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptString) Get() (v string, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptString) Or(d string) string {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptText returns new OptText with value set to v.
|
|
func NewOptText(v Text) OptText {
|
|
return OptText{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptText is optional Text.
|
|
type OptText struct {
|
|
Value Text
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptText was set.
|
|
func (o OptText) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptText) Reset() {
|
|
var v Text
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptText) SetTo(v Text) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptText) Get() (v Text, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptText) Or(d Text) Text {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptWatchEndpoint returns new OptWatchEndpoint with value set to v.
|
|
func NewOptWatchEndpoint(v WatchEndpoint) OptWatchEndpoint {
|
|
return OptWatchEndpoint{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptWatchEndpoint is optional WatchEndpoint.
|
|
type OptWatchEndpoint struct {
|
|
Value WatchEndpoint
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptWatchEndpoint was set.
|
|
func (o OptWatchEndpoint) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptWatchEndpoint) Reset() {
|
|
var v WatchEndpoint
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptWatchEndpoint) SetTo(v WatchEndpoint) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptWatchEndpoint) Get() (v WatchEndpoint, ok bool) {
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptWatchEndpoint) Or(d WatchEndpoint) WatchEndpoint {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// Client information.
|
|
// Ref: #/components/schemas/RequestClient
|
|
type RequestClient struct {
|
|
ClientName OptString `json:"clientName"`
|
|
ClientVersion OptString `json:"clientVersion"`
|
|
Hl OptString `json:"hl"`
|
|
Gl OptString `json:"gl"`
|
|
ExperimentsToken OptString `json:"experimentsToken"`
|
|
BrowserName OptString `json:"browserName"`
|
|
DeviceMake OptString `json:"deviceMake"`
|
|
BrowserVersion OptString `json:"browserVersion"`
|
|
OsName OptString `json:"osName"`
|
|
OsVersion OptString `json:"osVersion"`
|
|
Platform OptString `json:"platform"`
|
|
KidsAppInfo KidsAppInfo `json:"kidsAppInfo"`
|
|
}
|
|
|
|
// GetClientName returns the value of ClientName.
|
|
func (s *RequestClient) GetClientName() OptString {
|
|
return s.ClientName
|
|
}
|
|
|
|
// GetClientVersion returns the value of ClientVersion.
|
|
func (s *RequestClient) GetClientVersion() OptString {
|
|
return s.ClientVersion
|
|
}
|
|
|
|
// GetHl returns the value of Hl.
|
|
func (s *RequestClient) GetHl() OptString {
|
|
return s.Hl
|
|
}
|
|
|
|
// GetGl returns the value of Gl.
|
|
func (s *RequestClient) GetGl() OptString {
|
|
return s.Gl
|
|
}
|
|
|
|
// GetExperimentsToken returns the value of ExperimentsToken.
|
|
func (s *RequestClient) GetExperimentsToken() OptString {
|
|
return s.ExperimentsToken
|
|
}
|
|
|
|
// GetBrowserName returns the value of BrowserName.
|
|
func (s *RequestClient) GetBrowserName() OptString {
|
|
return s.BrowserName
|
|
}
|
|
|
|
// GetDeviceMake returns the value of DeviceMake.
|
|
func (s *RequestClient) GetDeviceMake() OptString {
|
|
return s.DeviceMake
|
|
}
|
|
|
|
// GetBrowserVersion returns the value of BrowserVersion.
|
|
func (s *RequestClient) GetBrowserVersion() OptString {
|
|
return s.BrowserVersion
|
|
}
|
|
|
|
// GetOsName returns the value of OsName.
|
|
func (s *RequestClient) GetOsName() OptString {
|
|
return s.OsName
|
|
}
|
|
|
|
// GetOsVersion returns the value of OsVersion.
|
|
func (s *RequestClient) GetOsVersion() OptString {
|
|
return s.OsVersion
|
|
}
|
|
|
|
// GetPlatform returns the value of Platform.
|
|
func (s *RequestClient) GetPlatform() OptString {
|
|
return s.Platform
|
|
}
|
|
|
|
// GetKidsAppInfo returns the value of KidsAppInfo.
|
|
func (s *RequestClient) GetKidsAppInfo() KidsAppInfo {
|
|
return s.KidsAppInfo
|
|
}
|
|
|
|
// SetClientName sets the value of ClientName.
|
|
func (s *RequestClient) SetClientName(val OptString) {
|
|
s.ClientName = val
|
|
}
|
|
|
|
// SetClientVersion sets the value of ClientVersion.
|
|
func (s *RequestClient) SetClientVersion(val OptString) {
|
|
s.ClientVersion = val
|
|
}
|
|
|
|
// SetHl sets the value of Hl.
|
|
func (s *RequestClient) SetHl(val OptString) {
|
|
s.Hl = val
|
|
}
|
|
|
|
// SetGl sets the value of Gl.
|
|
func (s *RequestClient) SetGl(val OptString) {
|
|
s.Gl = val
|
|
}
|
|
|
|
// SetExperimentsToken sets the value of ExperimentsToken.
|
|
func (s *RequestClient) SetExperimentsToken(val OptString) {
|
|
s.ExperimentsToken = val
|
|
}
|
|
|
|
// SetBrowserName sets the value of BrowserName.
|
|
func (s *RequestClient) SetBrowserName(val OptString) {
|
|
s.BrowserName = val
|
|
}
|
|
|
|
// SetDeviceMake sets the value of DeviceMake.
|
|
func (s *RequestClient) SetDeviceMake(val OptString) {
|
|
s.DeviceMake = val
|
|
}
|
|
|
|
// SetBrowserVersion sets the value of BrowserVersion.
|
|
func (s *RequestClient) SetBrowserVersion(val OptString) {
|
|
s.BrowserVersion = val
|
|
}
|
|
|
|
// SetOsName sets the value of OsName.
|
|
func (s *RequestClient) SetOsName(val OptString) {
|
|
s.OsName = val
|
|
}
|
|
|
|
// SetOsVersion sets the value of OsVersion.
|
|
func (s *RequestClient) SetOsVersion(val OptString) {
|
|
s.OsVersion = val
|
|
}
|
|
|
|
// SetPlatform sets the value of Platform.
|
|
func (s *RequestClient) SetPlatform(val OptString) {
|
|
s.Platform = val
|
|
}
|
|
|
|
// SetKidsAppInfo sets the value of KidsAppInfo.
|
|
func (s *RequestClient) SetKidsAppInfo(val KidsAppInfo) {
|
|
s.KidsAppInfo = val
|
|
}
|
|
|
|
// Request context.
|
|
// Ref: #/components/schemas/RequestContext
|
|
type RequestContext struct {
|
|
Client RequestClient `json:"client"`
|
|
}
|
|
|
|
// GetClient returns the value of Client.
|
|
func (s *RequestContext) GetClient() RequestClient {
|
|
return s.Client
|
|
}
|
|
|
|
// SetClient sets the value of Client.
|
|
func (s *RequestContext) SetClient(val RequestClient) {
|
|
s.Client = val
|
|
}
|
|
|
|
// Response context.
|
|
// Ref: #/components/schemas/ResponseContext
|
|
type ResponseContext struct {
|
|
VisitorData OptString `json:"visitorData"`
|
|
MaxAgeSeconds OptInt `json:"maxAgeSeconds"`
|
|
ServiceTrackingParams []ResponseContextServiceTrackingParamsItem `json:"serviceTrackingParams"`
|
|
}
|
|
|
|
// GetVisitorData returns the value of VisitorData.
|
|
func (s *ResponseContext) GetVisitorData() OptString {
|
|
return s.VisitorData
|
|
}
|
|
|
|
// GetMaxAgeSeconds returns the value of MaxAgeSeconds.
|
|
func (s *ResponseContext) GetMaxAgeSeconds() OptInt {
|
|
return s.MaxAgeSeconds
|
|
}
|
|
|
|
// GetServiceTrackingParams returns the value of ServiceTrackingParams.
|
|
func (s *ResponseContext) GetServiceTrackingParams() []ResponseContextServiceTrackingParamsItem {
|
|
return s.ServiceTrackingParams
|
|
}
|
|
|
|
// SetVisitorData sets the value of VisitorData.
|
|
func (s *ResponseContext) SetVisitorData(val OptString) {
|
|
s.VisitorData = val
|
|
}
|
|
|
|
// SetMaxAgeSeconds sets the value of MaxAgeSeconds.
|
|
func (s *ResponseContext) SetMaxAgeSeconds(val OptInt) {
|
|
s.MaxAgeSeconds = val
|
|
}
|
|
|
|
// SetServiceTrackingParams sets the value of ServiceTrackingParams.
|
|
func (s *ResponseContext) SetServiceTrackingParams(val []ResponseContextServiceTrackingParamsItem) {
|
|
s.ServiceTrackingParams = val
|
|
}
|
|
|
|
type ResponseContextServiceTrackingParamsItem struct {
|
|
Service OptString `json:"service"`
|
|
Params []KeyStringValue `json:"params"`
|
|
}
|
|
|
|
// GetService returns the value of Service.
|
|
func (s *ResponseContextServiceTrackingParamsItem) GetService() OptString {
|
|
return s.Service
|
|
}
|
|
|
|
// GetParams returns the value of Params.
|
|
func (s *ResponseContextServiceTrackingParamsItem) GetParams() []KeyStringValue {
|
|
return s.Params
|
|
}
|
|
|
|
// SetService sets the value of Service.
|
|
func (s *ResponseContextServiceTrackingParamsItem) SetService(val OptString) {
|
|
s.Service = val
|
|
}
|
|
|
|
// SetParams sets the value of Params.
|
|
func (s *ResponseContextServiceTrackingParamsItem) SetParams(val []KeyStringValue) {
|
|
s.Params = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ScreenAnchor
|
|
type ScreenAnchor struct {
|
|
AnchoredSectionRenderer OptAnchoredSectionRenderer `json:"anchoredSectionRenderer"`
|
|
}
|
|
|
|
// GetAnchoredSectionRenderer returns the value of AnchoredSectionRenderer.
|
|
func (s *ScreenAnchor) GetAnchoredSectionRenderer() OptAnchoredSectionRenderer {
|
|
return s.AnchoredSectionRenderer
|
|
}
|
|
|
|
// SetAnchoredSectionRenderer sets the value of AnchoredSectionRenderer.
|
|
func (s *ScreenAnchor) SetAnchoredSectionRenderer(val OptAnchoredSectionRenderer) {
|
|
s.AnchoredSectionRenderer = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ScreenRenderer
|
|
type ScreenRenderer struct {
|
|
Anchors []ScreenAnchor `json:"anchors"`
|
|
}
|
|
|
|
// GetAnchors returns the value of Anchors.
|
|
func (s *ScreenRenderer) GetAnchors() []ScreenAnchor {
|
|
return s.Anchors
|
|
}
|
|
|
|
// SetAnchors sets the value of Anchors.
|
|
func (s *ScreenRenderer) SetAnchors(val []ScreenAnchor) {
|
|
s.Anchors = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/SectionListRenderer
|
|
type SectionListRenderer struct {
|
|
Contents []SectionListRendererContentsItem `json:"contents"`
|
|
TrackingParams OptString `json:"trackingParams"`
|
|
}
|
|
|
|
// GetContents returns the value of Contents.
|
|
func (s *SectionListRenderer) GetContents() []SectionListRendererContentsItem {
|
|
return s.Contents
|
|
}
|
|
|
|
// GetTrackingParams returns the value of TrackingParams.
|
|
func (s *SectionListRenderer) GetTrackingParams() OptString {
|
|
return s.TrackingParams
|
|
}
|
|
|
|
// SetContents sets the value of Contents.
|
|
func (s *SectionListRenderer) SetContents(val []SectionListRendererContentsItem) {
|
|
s.Contents = val
|
|
}
|
|
|
|
// SetTrackingParams sets the value of TrackingParams.
|
|
func (s *SectionListRenderer) SetTrackingParams(val OptString) {
|
|
s.TrackingParams = val
|
|
}
|
|
|
|
type SectionListRendererContentsItem struct {
|
|
ItemSectionRenderer OptItemSectionRenderer `json:"itemSectionRenderer"`
|
|
}
|
|
|
|
// GetItemSectionRenderer returns the value of ItemSectionRenderer.
|
|
func (s *SectionListRendererContentsItem) GetItemSectionRenderer() OptItemSectionRenderer {
|
|
return s.ItemSectionRenderer
|
|
}
|
|
|
|
// SetItemSectionRenderer sets the value of ItemSectionRenderer.
|
|
func (s *SectionListRendererContentsItem) SetItemSectionRenderer(val OptItemSectionRenderer) {
|
|
s.ItemSectionRenderer = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Text
|
|
type Text struct {
|
|
Runs []TextRun `json:"runs"`
|
|
Accessibility OptAccessibility `json:"accessibility"`
|
|
}
|
|
|
|
// GetRuns returns the value of Runs.
|
|
func (s *Text) GetRuns() []TextRun {
|
|
return s.Runs
|
|
}
|
|
|
|
// GetAccessibility returns the value of Accessibility.
|
|
func (s *Text) GetAccessibility() OptAccessibility {
|
|
return s.Accessibility
|
|
}
|
|
|
|
// SetRuns sets the value of Runs.
|
|
func (s *Text) SetRuns(val []TextRun) {
|
|
s.Runs = val
|
|
}
|
|
|
|
// SetAccessibility sets the value of Accessibility.
|
|
func (s *Text) SetAccessibility(val OptAccessibility) {
|
|
s.Accessibility = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/TextRun
|
|
type TextRun struct {
|
|
Text string `json:"text"`
|
|
NavigationEndpoint OptNavigationEndpoint `json:"navigationEndpoint"`
|
|
}
|
|
|
|
// GetText returns the value of Text.
|
|
func (s *TextRun) GetText() string {
|
|
return s.Text
|
|
}
|
|
|
|
// GetNavigationEndpoint returns the value of NavigationEndpoint.
|
|
func (s *TextRun) GetNavigationEndpoint() OptNavigationEndpoint {
|
|
return s.NavigationEndpoint
|
|
}
|
|
|
|
// SetText sets the value of Text.
|
|
func (s *TextRun) SetText(val string) {
|
|
s.Text = val
|
|
}
|
|
|
|
// SetNavigationEndpoint sets the value of NavigationEndpoint.
|
|
func (s *TextRun) SetNavigationEndpoint(val OptNavigationEndpoint) {
|
|
s.NavigationEndpoint = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Thumbnail
|
|
type Thumbnail struct {
|
|
URL string `json:"url"`
|
|
Width int `json:"width"`
|
|
Height int `json:"height"`
|
|
}
|
|
|
|
// GetURL returns the value of URL.
|
|
func (s *Thumbnail) GetURL() string {
|
|
return s.URL
|
|
}
|
|
|
|
// GetWidth returns the value of Width.
|
|
func (s *Thumbnail) GetWidth() int {
|
|
return s.Width
|
|
}
|
|
|
|
// GetHeight returns the value of Height.
|
|
func (s *Thumbnail) GetHeight() int {
|
|
return s.Height
|
|
}
|
|
|
|
// SetURL sets the value of URL.
|
|
func (s *Thumbnail) SetURL(val string) {
|
|
s.URL = val
|
|
}
|
|
|
|
// SetWidth sets the value of Width.
|
|
func (s *Thumbnail) SetWidth(val int) {
|
|
s.Width = val
|
|
}
|
|
|
|
// SetHeight sets the value of Height.
|
|
func (s *Thumbnail) SetHeight(val int) {
|
|
s.Height = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/WatchEndpoint
|
|
type WatchEndpoint struct {
|
|
VideoId OptString `json:"videoId"`
|
|
}
|
|
|
|
// GetVideoId returns the value of VideoId.
|
|
func (s *WatchEndpoint) GetVideoId() OptString {
|
|
return s.VideoId
|
|
}
|
|
|
|
// SetVideoId sets the value of VideoId.
|
|
func (s *WatchEndpoint) SetVideoId(val OptString) {
|
|
s.VideoId = val
|
|
}
|