go-youtubekids-client/oas_schemas_gen.go

2440 lines
64 KiB
Go
Raw Normal View History

2023-04-04 19:45:55 +00:00
// Code generated by ogen, DO NOT EDIT.
package go_youtubekids_client
// 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 OptRequestContext `json:"context"`
BrowseId OptString `json:"browseId"`
}
// GetContext returns the value of Context.
func (s *BrowseRequestPayload) GetContext() OptRequestContext {
return s.Context
}
// GetBrowseId returns the value of BrowseId.
func (s *BrowseRequestPayload) GetBrowseId() OptString {
return s.BrowseId
}
// SetContext sets the value of Context.
func (s *BrowseRequestPayload) SetContext(val OptRequestContext) {
s.Context = val
}
// SetBrowseId sets the value of BrowseId.
func (s *BrowseRequestPayload) SetBrowseId(val OptString) {
s.BrowseId = val
}
// Ref: #/components/schemas/BrowseResponsePayload
type BrowseResponsePayload struct {
ResponseContext OptResponseContext `json:"responseContext"`
Header OptBrowseResponsePayloadHeader `json:"header"`
Contents OptBrowseResponsePayloadContents `json:"contents"`
TrackingParams OptString `json:"trackingParams"`
}
// GetResponseContext returns the value of ResponseContext.
func (s *BrowseResponsePayload) GetResponseContext() OptResponseContext {
return s.ResponseContext
}
// GetHeader returns the value of Header.
func (s *BrowseResponsePayload) GetHeader() OptBrowseResponsePayloadHeader {
return s.Header
}
// GetContents returns the value of Contents.
func (s *BrowseResponsePayload) GetContents() OptBrowseResponsePayloadContents {
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 OptResponseContext) {
s.ResponseContext = val
}
// SetHeader sets the value of Header.
func (s *BrowseResponsePayload) SetHeader(val OptBrowseResponsePayloadHeader) {
s.Header = val
}
// SetContents sets the value of Contents.
func (s *BrowseResponsePayload) SetContents(val OptBrowseResponsePayloadContents) {
s.Contents = val
}
// SetTrackingParams sets the value of TrackingParams.
func (s *BrowseResponsePayload) SetTrackingParams(val OptString) {
s.TrackingParams = val
}
func (*BrowseResponsePayload) browseRes() {}
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 OptString `json:"assetKey"`
BackgroundColor OptString `json:"backgroundColor"`
}
// GetAssetKey returns the value of AssetKey.
func (s *CategoryAssets) GetAssetKey() OptString {
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 OptString) {
s.AssetKey = val
}
// SetBackgroundColor sets the value of BackgroundColor.
func (s *CategoryAssets) SetBackgroundColor(val OptString) {
s.BackgroundColor = val
}
// Ref: #/components/schemas/CompactVideoRenderer
type CompactVideoRenderer struct {
VideoId OptString `json:"videoId"`
Thumbnail OptCompactVideoRendererThumbnail `json:"thumbnail"`
Title OptText `json:"title"`
LongBylineText OptText `json:"longBylineText"`
PublishedTimeText OptText `json:"publishedTimeText"`
ViewCountText OptText `json:"viewCountText"`
LengthText OptText `json:"lengthText"`
NavigationEndpoint OptNavigationEndpoint `json:"navigationEndpoint"`
ShortBylineText OptText `json:"shortBylineText"`
ChannelThumbnail OptCompactVideoRendererChannelThumbnail `json:"channelThumbnail"`
TrackingParams OptString `json:"trackingParams"`
ShortViewCountText OptText `json:"shortViewCountText"`
Accessibility OptAccessibility `json:"accessibility"`
KidsVideoOwnerExtension OptKidsVideoOwnerExtension `json:"kidsVideoOwnerExtension"`
}
// GetVideoId returns the value of VideoId.
func (s *CompactVideoRenderer) GetVideoId() OptString {
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() OptText {
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() OptText {
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() OptString {
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() OptKidsVideoOwnerExtension {
return s.KidsVideoOwnerExtension
}
// SetVideoId sets the value of VideoId.
func (s *CompactVideoRenderer) SetVideoId(val OptString) {
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 OptText) {
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 OptText) {
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 OptString) {
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 OptKidsVideoOwnerExtension) {
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 OptString `json:"message"`
Domain OptString `json:"domain"`
Reason OptString `json:"reason"`
}
// GetMessage returns the value of Message.
func (s *Error) GetMessage() OptString {
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 OptString) {
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 OptErrorResponsePayloadError `json:"error"`
}
// GetError returns the value of Error.
func (s *ErrorResponsePayload) GetError() OptErrorResponsePayloadError {
return s.Error
}
// SetError sets the value of Error.
func (s *ErrorResponsePayload) SetError(val OptErrorResponsePayloadError) {
s.Error = val
}
func (*ErrorResponsePayload) browseRes() {}
type ErrorResponsePayloadError struct {
Code OptFloat64 `json:"code"`
Message OptString `json:"message"`
Errors []Error `json:"errors"`
Status OptString `json:"status"`
}
// GetCode returns the value of Code.
func (s *ErrorResponsePayloadError) GetCode() OptFloat64 {
return s.Code
}
// GetMessage returns the value of Message.
func (s *ErrorResponsePayloadError) GetMessage() OptString {
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() OptString {
return s.Status
}
// SetCode sets the value of Code.
func (s *ErrorResponsePayloadError) SetCode(val OptFloat64) {
s.Code = val
}
// SetMessage sets the value of Message.
func (s *ErrorResponsePayloadError) SetMessage(val OptString) {
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 OptString) {
s.Status = val
}
// Ref: #/components/schemas/ItemSectionRenderer
type ItemSectionRenderer struct {
Contents []ItemSectionRendererContentsItem `json:"contents"`
TrackingParams OptString `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() OptString {
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 OptString) {
s.TrackingParams = val
}
type ItemSectionRendererContentsItem struct {
CompactVideoRenderer OptCompactVideoRenderer `json:"compactVideoRenderer"`
}
// GetCompactVideoRenderer returns the value of CompactVideoRenderer.
func (s *ItemSectionRendererContentsItem) GetCompactVideoRenderer() OptCompactVideoRenderer {
return s.CompactVideoRenderer
}
// SetCompactVideoRenderer sets the value of CompactVideoRenderer.
func (s *ItemSectionRendererContentsItem) SetCompactVideoRenderer(val OptCompactVideoRenderer) {
s.CompactVideoRenderer = val
}
// Ref: #/components/schemas/KeyStringValue
type KeyStringValue struct {
Key OptString `json:"key"`
Value OptString `json:"value"`
}
// GetKey returns the value of Key.
func (s *KeyStringValue) GetKey() OptString {
return s.Key
}
// GetValue returns the value of Value.
func (s *KeyStringValue) GetValue() OptString {
return s.Value
}
// SetKey sets the value of Key.
func (s *KeyStringValue) SetKey(val OptString) {
s.Key = val
}
// SetValue sets the value of Value.
func (s *KeyStringValue) SetValue(val OptString) {
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 OptString `json:"corpusPreference"`
KidsNoSearchMode OptString `json:"kidsNoSearchMode"`
}
// GetCorpusPreference returns the value of CorpusPreference.
func (s *KidsAppContentSettings) GetCorpusPreference() OptString {
return s.CorpusPreference
}
// GetKidsNoSearchMode returns the value of KidsNoSearchMode.
func (s *KidsAppContentSettings) GetKidsNoSearchMode() OptString {
return s.KidsNoSearchMode
}
// SetCorpusPreference sets the value of CorpusPreference.
func (s *KidsAppContentSettings) SetCorpusPreference(val OptString) {
s.CorpusPreference = val
}
// SetKidsNoSearchMode sets the value of KidsNoSearchMode.
func (s *KidsAppContentSettings) SetKidsNoSearchMode(val OptString) {
s.KidsNoSearchMode = val
}
// 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 OptString `json:"externalChannelId"`
}
// GetExternalChannelId returns the value of ExternalChannelId.
func (s *KidsVideoOwnerExtension) GetExternalChannelId() OptString {
return s.ExternalChannelId
}
// SetExternalChannelId sets the value of ExternalChannelId.
func (s *KidsVideoOwnerExtension) SetExternalChannelId(val OptString) {
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
}
// NewOptBrowseResponsePayloadContents returns new OptBrowseResponsePayloadContents with value set to v.
func NewOptBrowseResponsePayloadContents(v BrowseResponsePayloadContents) OptBrowseResponsePayloadContents {
return OptBrowseResponsePayloadContents{
Value: v,
Set: true,
}
}
// OptBrowseResponsePayloadContents is optional BrowseResponsePayloadContents.
type OptBrowseResponsePayloadContents struct {
Value BrowseResponsePayloadContents
Set bool
}
// IsSet returns true if OptBrowseResponsePayloadContents was set.
func (o OptBrowseResponsePayloadContents) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptBrowseResponsePayloadContents) Reset() {
var v BrowseResponsePayloadContents
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptBrowseResponsePayloadContents) SetTo(v BrowseResponsePayloadContents) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptBrowseResponsePayloadContents) Get() (v BrowseResponsePayloadContents, 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 OptBrowseResponsePayloadContents) Or(d BrowseResponsePayloadContents) BrowseResponsePayloadContents {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptBrowseResponsePayloadHeader returns new OptBrowseResponsePayloadHeader with value set to v.
func NewOptBrowseResponsePayloadHeader(v BrowseResponsePayloadHeader) OptBrowseResponsePayloadHeader {
return OptBrowseResponsePayloadHeader{
Value: v,
Set: true,
}
}
// OptBrowseResponsePayloadHeader is optional BrowseResponsePayloadHeader.
type OptBrowseResponsePayloadHeader struct {
Value BrowseResponsePayloadHeader
Set bool
}
// IsSet returns true if OptBrowseResponsePayloadHeader was set.
func (o OptBrowseResponsePayloadHeader) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptBrowseResponsePayloadHeader) Reset() {
var v BrowseResponsePayloadHeader
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptBrowseResponsePayloadHeader) SetTo(v BrowseResponsePayloadHeader) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptBrowseResponsePayloadHeader) Get() (v BrowseResponsePayloadHeader, 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 OptBrowseResponsePayloadHeader) Or(d BrowseResponsePayloadHeader) BrowseResponsePayloadHeader {
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
}
// 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
}
// NewOptErrorResponsePayloadError returns new OptErrorResponsePayloadError with value set to v.
func NewOptErrorResponsePayloadError(v ErrorResponsePayloadError) OptErrorResponsePayloadError {
return OptErrorResponsePayloadError{
Value: v,
Set: true,
}
}
// OptErrorResponsePayloadError is optional ErrorResponsePayloadError.
type OptErrorResponsePayloadError struct {
Value ErrorResponsePayloadError
Set bool
}
// IsSet returns true if OptErrorResponsePayloadError was set.
func (o OptErrorResponsePayloadError) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptErrorResponsePayloadError) Reset() {
var v ErrorResponsePayloadError
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptErrorResponsePayloadError) SetTo(v ErrorResponsePayloadError) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptErrorResponsePayloadError) Get() (v ErrorResponsePayloadError, 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 OptErrorResponsePayloadError) Or(d ErrorResponsePayloadError) ErrorResponsePayloadError {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptFloat64 returns new OptFloat64 with value set to v.
func NewOptFloat64(v float64) OptFloat64 {
return OptFloat64{
Value: v,
Set: true,
}
}
// OptFloat64 is optional float64.
type OptFloat64 struct {
Value float64
Set bool
}
// IsSet returns true if OptFloat64 was set.
func (o OptFloat64) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptFloat64) Reset() {
var v float64
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptFloat64) SetTo(v float64) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptFloat64) Get() (v float64, 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 OptFloat64) Or(d float64) float64 {
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
}
// NewOptKidsAppInfo returns new OptKidsAppInfo with value set to v.
func NewOptKidsAppInfo(v KidsAppInfo) OptKidsAppInfo {
return OptKidsAppInfo{
Value: v,
Set: true,
}
}
// OptKidsAppInfo is optional KidsAppInfo.
type OptKidsAppInfo struct {
Value KidsAppInfo
Set bool
}
// IsSet returns true if OptKidsAppInfo was set.
func (o OptKidsAppInfo) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptKidsAppInfo) Reset() {
var v KidsAppInfo
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptKidsAppInfo) SetTo(v KidsAppInfo) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptKidsAppInfo) Get() (v KidsAppInfo, 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 OptKidsAppInfo) Or(d KidsAppInfo) KidsAppInfo {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptKidsVideoOwnerExtension returns new OptKidsVideoOwnerExtension with value set to v.
func NewOptKidsVideoOwnerExtension(v KidsVideoOwnerExtension) OptKidsVideoOwnerExtension {
return OptKidsVideoOwnerExtension{
Value: v,
Set: true,
}
}
// OptKidsVideoOwnerExtension is optional KidsVideoOwnerExtension.
type OptKidsVideoOwnerExtension struct {
Value KidsVideoOwnerExtension
Set bool
}
// IsSet returns true if OptKidsVideoOwnerExtension was set.
func (o OptKidsVideoOwnerExtension) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptKidsVideoOwnerExtension) Reset() {
var v KidsVideoOwnerExtension
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptKidsVideoOwnerExtension) SetTo(v KidsVideoOwnerExtension) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptKidsVideoOwnerExtension) Get() (v KidsVideoOwnerExtension, 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 OptKidsVideoOwnerExtension) Or(d KidsVideoOwnerExtension) KidsVideoOwnerExtension {
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
}
// NewOptRequestClient returns new OptRequestClient with value set to v.
func NewOptRequestClient(v RequestClient) OptRequestClient {
return OptRequestClient{
Value: v,
Set: true,
}
}
// OptRequestClient is optional RequestClient.
type OptRequestClient struct {
Value RequestClient
Set bool
}
// IsSet returns true if OptRequestClient was set.
func (o OptRequestClient) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptRequestClient) Reset() {
var v RequestClient
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptRequestClient) SetTo(v RequestClient) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptRequestClient) Get() (v RequestClient, 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 OptRequestClient) Or(d RequestClient) RequestClient {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptRequestContext returns new OptRequestContext with value set to v.
func NewOptRequestContext(v RequestContext) OptRequestContext {
return OptRequestContext{
Value: v,
Set: true,
}
}
// OptRequestContext is optional RequestContext.
type OptRequestContext struct {
Value RequestContext
Set bool
}
// IsSet returns true if OptRequestContext was set.
func (o OptRequestContext) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptRequestContext) Reset() {
var v RequestContext
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptRequestContext) SetTo(v RequestContext) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptRequestContext) Get() (v RequestContext, 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 OptRequestContext) Or(d RequestContext) RequestContext {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptResponseContext returns new OptResponseContext with value set to v.
func NewOptResponseContext(v ResponseContext) OptResponseContext {
return OptResponseContext{
Value: v,
Set: true,
}
}
// OptResponseContext is optional ResponseContext.
type OptResponseContext struct {
Value ResponseContext
Set bool
}
// IsSet returns true if OptResponseContext was set.
func (o OptResponseContext) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptResponseContext) Reset() {
var v ResponseContext
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptResponseContext) SetTo(v ResponseContext) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptResponseContext) Get() (v ResponseContext, 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 OptResponseContext) Or(d ResponseContext) ResponseContext {
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 OptKidsAppInfo `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() OptKidsAppInfo {
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 OptKidsAppInfo) {
s.KidsAppInfo = val
}
// Request context.
// Ref: #/components/schemas/RequestContext
type RequestContext struct {
Client OptRequestClient `json:"client"`
}
// GetClient returns the value of Client.
func (s *RequestContext) GetClient() OptRequestClient {
return s.Client
}
// SetClient sets the value of Client.
func (s *RequestContext) SetClient(val OptRequestClient) {
s.Client = val
}
// Response context.
// Ref: #/components/schemas/ResponseContext
type ResponseContext struct {
VisitorData OptString `json:"visitorData"`
MaxAgeSeconds OptFloat64 `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() OptFloat64 {
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 OptFloat64) {
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 OptString `json:"text"`
NavigationEndpoint OptNavigationEndpoint `json:"navigationEndpoint"`
}
// GetText returns the value of Text.
func (s *TextRun) GetText() OptString {
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 OptString) {
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 OptString `json:"url"`
Width OptFloat64 `json:"width"`
Height OptFloat64 `json:"height"`
}
// GetURL returns the value of URL.
func (s *Thumbnail) GetURL() OptString {
return s.URL
}
// GetWidth returns the value of Width.
func (s *Thumbnail) GetWidth() OptFloat64 {
return s.Width
}
// GetHeight returns the value of Height.
func (s *Thumbnail) GetHeight() OptFloat64 {
return s.Height
}
// SetURL sets the value of URL.
func (s *Thumbnail) SetURL(val OptString) {
s.URL = val
}
// SetWidth sets the value of Width.
func (s *Thumbnail) SetWidth(val OptFloat64) {
s.Width = val
}
// SetHeight sets the value of Height.
func (s *Thumbnail) SetHeight(val OptFloat64) {
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
}