youtube
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package youtube provides access to the YouTube Data API v3.
For product documentation, see:https://developers.google.com/youtube/
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/youtube/v3"...ctx := context.Background()youtubeService, err := youtube.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
By default, all available scopes (see "Constants") are used to authenticate.To restrict scopes, usegoogle.golang.org/api/option.WithScopes:
youtubeService, err := youtube.NewService(ctx, option.WithScopes(youtube.YoutubepartnerChannelAuditScope))
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
youtubeService, err := youtube.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)youtubeService, err := youtube.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type AbuseReport
- type AbuseReportsInsertCall
- func (c *AbuseReportsInsertCall) Context(ctx context.Context) *AbuseReportsInsertCall
- func (c *AbuseReportsInsertCall) Do(opts ...googleapi.CallOption) (*AbuseReport, error)
- func (c *AbuseReportsInsertCall) Fields(s ...googleapi.Field) *AbuseReportsInsertCall
- func (c *AbuseReportsInsertCall) Header() http.Header
- type AbuseReportsService
- type AbuseType
- type AccessPolicy
- type ActivitiesListCall
- func (c *ActivitiesListCall) ChannelId(channelId string) *ActivitiesListCall
- func (c *ActivitiesListCall) Context(ctx context.Context) *ActivitiesListCall
- func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityListResponse, error)
- func (c *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall
- func (c *ActivitiesListCall) Header() http.Header
- func (c *ActivitiesListCall) Home(home bool) *ActivitiesListCall
- func (c *ActivitiesListCall) IfNoneMatch(entityTag string) *ActivitiesListCall
- func (c *ActivitiesListCall) MaxResults(maxResults int64) *ActivitiesListCall
- func (c *ActivitiesListCall) Mine(mine bool) *ActivitiesListCall
- func (c *ActivitiesListCall) PageToken(pageToken string) *ActivitiesListCall
- func (c *ActivitiesListCall) Pages(ctx context.Context, f func(*ActivityListResponse) error) error
- func (c *ActivitiesListCall) PublishedAfter(publishedAfter string) *ActivitiesListCall
- func (c *ActivitiesListCall) PublishedBefore(publishedBefore string) *ActivitiesListCall
- func (c *ActivitiesListCall) RegionCode(regionCode string) *ActivitiesListCall
- type ActivitiesService
- type Activity
- type ActivityContentDetails
- type ActivityContentDetailsBulletin
- type ActivityContentDetailsChannelItem
- type ActivityContentDetailsComment
- type ActivityContentDetailsFavorite
- type ActivityContentDetailsLike
- type ActivityContentDetailsPlaylistItem
- type ActivityContentDetailsPromotedItem
- type ActivityContentDetailsRecommendation
- type ActivityContentDetailsSocial
- type ActivityContentDetailsSubscription
- type ActivityContentDetailsUpload
- type ActivityListResponse
- type ActivitySnippet
- type BatchGetStatsResponse
- type Caption
- type CaptionListResponse
- type CaptionSnippet
- type CaptionsDeleteCall
- func (c *CaptionsDeleteCall) Context(ctx context.Context) *CaptionsDeleteCall
- func (c *CaptionsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *CaptionsDeleteCall) Fields(s ...googleapi.Field) *CaptionsDeleteCall
- func (c *CaptionsDeleteCall) Header() http.Header
- func (c *CaptionsDeleteCall) OnBehalfOf(onBehalfOf string) *CaptionsDeleteCall
- func (c *CaptionsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *CaptionsDeleteCall
- type CaptionsDownloadCall
- func (c *CaptionsDownloadCall) Context(ctx context.Context) *CaptionsDownloadCall
- func (c *CaptionsDownloadCall) Do(opts ...googleapi.CallOption) error
- func (c *CaptionsDownloadCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
- func (c *CaptionsDownloadCall) Fields(s ...googleapi.Field) *CaptionsDownloadCall
- func (c *CaptionsDownloadCall) Header() http.Header
- func (c *CaptionsDownloadCall) IfNoneMatch(entityTag string) *CaptionsDownloadCall
- func (c *CaptionsDownloadCall) OnBehalfOf(onBehalfOf string) *CaptionsDownloadCall
- func (c *CaptionsDownloadCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *CaptionsDownloadCall
- func (c *CaptionsDownloadCall) Tfmt(tfmt string) *CaptionsDownloadCall
- func (c *CaptionsDownloadCall) Tlang(tlang string) *CaptionsDownloadCall
- type CaptionsInsertCall
- func (c *CaptionsInsertCall) Context(ctx context.Context) *CaptionsInsertCall
- func (c *CaptionsInsertCall) Do(opts ...googleapi.CallOption) (*Caption, error)
- func (c *CaptionsInsertCall) Fields(s ...googleapi.Field) *CaptionsInsertCall
- func (c *CaptionsInsertCall) Header() http.Header
- func (c *CaptionsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CaptionsInsertCall
- func (c *CaptionsInsertCall) OnBehalfOf(onBehalfOf string) *CaptionsInsertCall
- func (c *CaptionsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *CaptionsInsertCall
- func (c *CaptionsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CaptionsInsertCall
- func (c *CaptionsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CaptionsInsertCalldeprecated
- func (c *CaptionsInsertCall) Sync(sync bool) *CaptionsInsertCall
- type CaptionsListCall
- func (c *CaptionsListCall) Context(ctx context.Context) *CaptionsListCall
- func (c *CaptionsListCall) Do(opts ...googleapi.CallOption) (*CaptionListResponse, error)
- func (c *CaptionsListCall) Fields(s ...googleapi.Field) *CaptionsListCall
- func (c *CaptionsListCall) Header() http.Header
- func (c *CaptionsListCall) Id(id ...string) *CaptionsListCall
- func (c *CaptionsListCall) IfNoneMatch(entityTag string) *CaptionsListCall
- func (c *CaptionsListCall) OnBehalfOf(onBehalfOf string) *CaptionsListCall
- func (c *CaptionsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *CaptionsListCall
- type CaptionsService
- func (r *CaptionsService) Delete(id string) *CaptionsDeleteCall
- func (r *CaptionsService) Download(id string) *CaptionsDownloadCall
- func (r *CaptionsService) Insert(part []string, caption *Caption) *CaptionsInsertCall
- func (r *CaptionsService) List(part []string, videoId string) *CaptionsListCall
- func (r *CaptionsService) Update(part []string, caption *Caption) *CaptionsUpdateCall
- type CaptionsUpdateCall
- func (c *CaptionsUpdateCall) Context(ctx context.Context) *CaptionsUpdateCall
- func (c *CaptionsUpdateCall) Do(opts ...googleapi.CallOption) (*Caption, error)
- func (c *CaptionsUpdateCall) Fields(s ...googleapi.Field) *CaptionsUpdateCall
- func (c *CaptionsUpdateCall) Header() http.Header
- func (c *CaptionsUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *CaptionsUpdateCall
- func (c *CaptionsUpdateCall) OnBehalfOf(onBehalfOf string) *CaptionsUpdateCall
- func (c *CaptionsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *CaptionsUpdateCall
- func (c *CaptionsUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CaptionsUpdateCall
- func (c *CaptionsUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CaptionsUpdateCalldeprecated
- func (c *CaptionsUpdateCall) Sync(sync bool) *CaptionsUpdateCall
- type CdnSettings
- type Channel
- type ChannelAuditDetails
- type ChannelBannerResource
- type ChannelBannersInsertCall
- func (c *ChannelBannersInsertCall) ChannelId(channelId string) *ChannelBannersInsertCall
- func (c *ChannelBannersInsertCall) Context(ctx context.Context) *ChannelBannersInsertCall
- func (c *ChannelBannersInsertCall) Do(opts ...googleapi.CallOption) (*ChannelBannerResource, error)
- func (c *ChannelBannersInsertCall) Fields(s ...googleapi.Field) *ChannelBannersInsertCall
- func (c *ChannelBannersInsertCall) Header() http.Header
- func (c *ChannelBannersInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *ChannelBannersInsertCall
- func (c *ChannelBannersInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *ChannelBannersInsertCall
- func (c *ChannelBannersInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *ChannelBannersInsertCall
- func (c *ChannelBannersInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ChannelBannersInsertCall
- func (c *ChannelBannersInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ChannelBannersInsertCalldeprecated
- type ChannelBannersService
- type ChannelBrandingSettings
- type ChannelContentDetails
- type ChannelContentDetailsRelatedPlaylists
- type ChannelContentOwnerDetails
- type ChannelConversionPing
- type ChannelConversionPings
- type ChannelListResponse
- type ChannelLocalization
- type ChannelProfileDetails
- type ChannelSection
- type ChannelSectionContentDetails
- type ChannelSectionListResponse
- type ChannelSectionLocalization
- type ChannelSectionSnippet
- type ChannelSectionTargeting
- type ChannelSectionsDeleteCall
- func (c *ChannelSectionsDeleteCall) Context(ctx context.Context) *ChannelSectionsDeleteCall
- func (c *ChannelSectionsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ChannelSectionsDeleteCall) Fields(s ...googleapi.Field) *ChannelSectionsDeleteCall
- func (c *ChannelSectionsDeleteCall) Header() http.Header
- func (c *ChannelSectionsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *ChannelSectionsDeleteCall
- type ChannelSectionsInsertCall
- func (c *ChannelSectionsInsertCall) Context(ctx context.Context) *ChannelSectionsInsertCall
- func (c *ChannelSectionsInsertCall) Do(opts ...googleapi.CallOption) (*ChannelSection, error)
- func (c *ChannelSectionsInsertCall) Fields(s ...googleapi.Field) *ChannelSectionsInsertCall
- func (c *ChannelSectionsInsertCall) Header() http.Header
- func (c *ChannelSectionsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *ChannelSectionsInsertCall
- func (c *ChannelSectionsInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *ChannelSectionsInsertCall
- type ChannelSectionsListCall
- func (c *ChannelSectionsListCall) ChannelId(channelId string) *ChannelSectionsListCall
- func (c *ChannelSectionsListCall) Context(ctx context.Context) *ChannelSectionsListCall
- func (c *ChannelSectionsListCall) Do(opts ...googleapi.CallOption) (*ChannelSectionListResponse, error)
- func (c *ChannelSectionsListCall) Fields(s ...googleapi.Field) *ChannelSectionsListCall
- func (c *ChannelSectionsListCall) Header() http.Header
- func (c *ChannelSectionsListCall) Hl(hl string) *ChannelSectionsListCall
- func (c *ChannelSectionsListCall) Id(id ...string) *ChannelSectionsListCall
- func (c *ChannelSectionsListCall) IfNoneMatch(entityTag string) *ChannelSectionsListCall
- func (c *ChannelSectionsListCall) Mine(mine bool) *ChannelSectionsListCall
- func (c *ChannelSectionsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *ChannelSectionsListCall
- type ChannelSectionsService
- func (r *ChannelSectionsService) Delete(id string) *ChannelSectionsDeleteCall
- func (r *ChannelSectionsService) Insert(part []string, channelsection *ChannelSection) *ChannelSectionsInsertCall
- func (r *ChannelSectionsService) List(part []string) *ChannelSectionsListCall
- func (r *ChannelSectionsService) Update(part []string, channelsection *ChannelSection) *ChannelSectionsUpdateCall
- type ChannelSectionsUpdateCall
- func (c *ChannelSectionsUpdateCall) Context(ctx context.Context) *ChannelSectionsUpdateCall
- func (c *ChannelSectionsUpdateCall) Do(opts ...googleapi.CallOption) (*ChannelSection, error)
- func (c *ChannelSectionsUpdateCall) Fields(s ...googleapi.Field) *ChannelSectionsUpdateCall
- func (c *ChannelSectionsUpdateCall) Header() http.Header
- func (c *ChannelSectionsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *ChannelSectionsUpdateCall
- type ChannelSettings
- type ChannelSnippet
- type ChannelStatistics
- type ChannelStatus
- type ChannelToStoreLinkDetails
- type ChannelToStoreLinkDetailsBillingDetails
- type ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails
- type ChannelTopicDetails
- type ChannelsListCall
- func (c *ChannelsListCall) CategoryId(categoryId string) *ChannelsListCall
- func (c *ChannelsListCall) Context(ctx context.Context) *ChannelsListCall
- func (c *ChannelsListCall) Do(opts ...googleapi.CallOption) (*ChannelListResponse, error)
- func (c *ChannelsListCall) Fields(s ...googleapi.Field) *ChannelsListCall
- func (c *ChannelsListCall) ForHandle(forHandle string) *ChannelsListCall
- func (c *ChannelsListCall) ForUsername(forUsername string) *ChannelsListCall
- func (c *ChannelsListCall) Header() http.Header
- func (c *ChannelsListCall) Hl(hl string) *ChannelsListCall
- func (c *ChannelsListCall) Id(id ...string) *ChannelsListCall
- func (c *ChannelsListCall) IfNoneMatch(entityTag string) *ChannelsListCall
- func (c *ChannelsListCall) ManagedByMe(managedByMe bool) *ChannelsListCall
- func (c *ChannelsListCall) MaxResults(maxResults int64) *ChannelsListCall
- func (c *ChannelsListCall) Mine(mine bool) *ChannelsListCall
- func (c *ChannelsListCall) MySubscribers(mySubscribers bool) *ChannelsListCall
- func (c *ChannelsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *ChannelsListCall
- func (c *ChannelsListCall) PageToken(pageToken string) *ChannelsListCall
- func (c *ChannelsListCall) Pages(ctx context.Context, f func(*ChannelListResponse) error) error
- type ChannelsService
- type ChannelsUpdateCall
- func (c *ChannelsUpdateCall) Context(ctx context.Context) *ChannelsUpdateCall
- func (c *ChannelsUpdateCall) Do(opts ...googleapi.CallOption) (*Channel, error)
- func (c *ChannelsUpdateCall) Fields(s ...googleapi.Field) *ChannelsUpdateCall
- func (c *ChannelsUpdateCall) Header() http.Header
- func (c *ChannelsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *ChannelsUpdateCall
- type Comment
- type CommentListResponse
- type CommentSnippet
- type CommentSnippetAuthorChannelId
- type CommentThread
- type CommentThreadListResponse
- type CommentThreadReplies
- type CommentThreadSnippet
- type CommentThreadsInsertCall
- func (c *CommentThreadsInsertCall) Context(ctx context.Context) *CommentThreadsInsertCall
- func (c *CommentThreadsInsertCall) Do(opts ...googleapi.CallOption) (*CommentThread, error)
- func (c *CommentThreadsInsertCall) Fields(s ...googleapi.Field) *CommentThreadsInsertCall
- func (c *CommentThreadsInsertCall) Header() http.Header
- type CommentThreadsListCall
- func (c *CommentThreadsListCall) AllThreadsRelatedToChannelId(allThreadsRelatedToChannelId string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) ChannelId(channelId string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) Context(ctx context.Context) *CommentThreadsListCall
- func (c *CommentThreadsListCall) Do(opts ...googleapi.CallOption) (*CommentThreadListResponse, error)
- func (c *CommentThreadsListCall) Fields(s ...googleapi.Field) *CommentThreadsListCall
- func (c *CommentThreadsListCall) Header() http.Header
- func (c *CommentThreadsListCall) Id(id ...string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) IfNoneMatch(entityTag string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) MaxResults(maxResults int64) *CommentThreadsListCall
- func (c *CommentThreadsListCall) ModerationStatus(moderationStatus string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) Order(order string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) PageToken(pageToken string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) Pages(ctx context.Context, f func(*CommentThreadListResponse) error) error
- func (c *CommentThreadsListCall) PostId(postId string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) SearchTerms(searchTerms string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) TextFormat(textFormat string) *CommentThreadsListCall
- func (c *CommentThreadsListCall) VideoId(videoId string) *CommentThreadsListCall
- type CommentThreadsService
- type CommentsDeleteCall
- type CommentsInsertCall
- type CommentsListCall
- func (c *CommentsListCall) Context(ctx context.Context) *CommentsListCall
- func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentListResponse, error)
- func (c *CommentsListCall) Fields(s ...googleapi.Field) *CommentsListCall
- func (c *CommentsListCall) Header() http.Header
- func (c *CommentsListCall) Id(id ...string) *CommentsListCall
- func (c *CommentsListCall) IfNoneMatch(entityTag string) *CommentsListCall
- func (c *CommentsListCall) MaxResults(maxResults int64) *CommentsListCall
- func (c *CommentsListCall) PageToken(pageToken string) *CommentsListCall
- func (c *CommentsListCall) Pages(ctx context.Context, f func(*CommentListResponse) error) error
- func (c *CommentsListCall) ParentId(parentId string) *CommentsListCall
- func (c *CommentsListCall) TextFormat(textFormat string) *CommentsListCall
- type CommentsMarkAsSpamCall
- type CommentsService
- func (r *CommentsService) Delete(id string) *CommentsDeleteCall
- func (r *CommentsService) Insert(part []string, comment *Comment) *CommentsInsertCall
- func (r *CommentsService) List(part []string) *CommentsListCall
- func (r *CommentsService) MarkAsSpam(id []string) *CommentsMarkAsSpamCall
- func (r *CommentsService) SetModerationStatus(id []string, moderationStatus string) *CommentsSetModerationStatusCall
- func (r *CommentsService) Update(part []string, comment *Comment) *CommentsUpdateCall
- type CommentsSetModerationStatusCall
- func (c *CommentsSetModerationStatusCall) BanAuthor(banAuthor bool) *CommentsSetModerationStatusCall
- func (c *CommentsSetModerationStatusCall) Context(ctx context.Context) *CommentsSetModerationStatusCall
- func (c *CommentsSetModerationStatusCall) Do(opts ...googleapi.CallOption) error
- func (c *CommentsSetModerationStatusCall) Fields(s ...googleapi.Field) *CommentsSetModerationStatusCall
- func (c *CommentsSetModerationStatusCall) Header() http.Header
- type CommentsUpdateCall
- type ContentRating
- type Cuepoint
- type CuepointSchedule
- type Entity
- type GeoPoint
- type I18nLanguage
- type I18nLanguageListResponse
- type I18nLanguageSnippet
- type I18nLanguagesListCall
- func (c *I18nLanguagesListCall) Context(ctx context.Context) *I18nLanguagesListCall
- func (c *I18nLanguagesListCall) Do(opts ...googleapi.CallOption) (*I18nLanguageListResponse, error)
- func (c *I18nLanguagesListCall) Fields(s ...googleapi.Field) *I18nLanguagesListCall
- func (c *I18nLanguagesListCall) Header() http.Header
- func (c *I18nLanguagesListCall) Hl(hl string) *I18nLanguagesListCall
- func (c *I18nLanguagesListCall) IfNoneMatch(entityTag string) *I18nLanguagesListCall
- type I18nLanguagesService
- type I18nRegion
- type I18nRegionListResponse
- type I18nRegionSnippet
- type I18nRegionsListCall
- func (c *I18nRegionsListCall) Context(ctx context.Context) *I18nRegionsListCall
- func (c *I18nRegionsListCall) Do(opts ...googleapi.CallOption) (*I18nRegionListResponse, error)
- func (c *I18nRegionsListCall) Fields(s ...googleapi.Field) *I18nRegionsListCall
- func (c *I18nRegionsListCall) Header() http.Header
- func (c *I18nRegionsListCall) Hl(hl string) *I18nRegionsListCall
- func (c *I18nRegionsListCall) IfNoneMatch(entityTag string) *I18nRegionsListCall
- type I18nRegionsService
- type ImageSettings
- type IngestionInfo
- type InvideoBranding
- type InvideoPosition
- type InvideoTiming
- type LanguageTag
- type LevelDetails
- type LiveBroadcast
- type LiveBroadcastContentDetails
- type LiveBroadcastListResponse
- type LiveBroadcastMonetizationDetails
- type LiveBroadcastSnippet
- type LiveBroadcastStatistics
- type LiveBroadcastStatus
- type LiveBroadcastsBindCall
- func (c *LiveBroadcastsBindCall) Context(ctx context.Context) *LiveBroadcastsBindCall
- func (c *LiveBroadcastsBindCall) Do(opts ...googleapi.CallOption) (*LiveBroadcast, error)
- func (c *LiveBroadcastsBindCall) Fields(s ...googleapi.Field) *LiveBroadcastsBindCall
- func (c *LiveBroadcastsBindCall) Header() http.Header
- func (c *LiveBroadcastsBindCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveBroadcastsBindCall
- func (c *LiveBroadcastsBindCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveBroadcastsBindCall
- func (c *LiveBroadcastsBindCall) StreamId(streamId string) *LiveBroadcastsBindCall
- type LiveBroadcastsDeleteCall
- func (c *LiveBroadcastsDeleteCall) Context(ctx context.Context) *LiveBroadcastsDeleteCall
- func (c *LiveBroadcastsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *LiveBroadcastsDeleteCall) Fields(s ...googleapi.Field) *LiveBroadcastsDeleteCall
- func (c *LiveBroadcastsDeleteCall) Header() http.Header
- func (c *LiveBroadcastsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveBroadcastsDeleteCall
- func (c *LiveBroadcastsDeleteCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveBroadcastsDeleteCall
- type LiveBroadcastsInsertCall
- func (c *LiveBroadcastsInsertCall) Context(ctx context.Context) *LiveBroadcastsInsertCall
- func (c *LiveBroadcastsInsertCall) Do(opts ...googleapi.CallOption) (*LiveBroadcast, error)
- func (c *LiveBroadcastsInsertCall) Fields(s ...googleapi.Field) *LiveBroadcastsInsertCall
- func (c *LiveBroadcastsInsertCall) Header() http.Header
- func (c *LiveBroadcastsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveBroadcastsInsertCall
- func (c *LiveBroadcastsInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveBroadcastsInsertCall
- type LiveBroadcastsInsertCuepointCall
- func (c *LiveBroadcastsInsertCuepointCall) Context(ctx context.Context) *LiveBroadcastsInsertCuepointCall
- func (c *LiveBroadcastsInsertCuepointCall) Do(opts ...googleapi.CallOption) (*Cuepoint, error)
- func (c *LiveBroadcastsInsertCuepointCall) Fields(s ...googleapi.Field) *LiveBroadcastsInsertCuepointCall
- func (c *LiveBroadcastsInsertCuepointCall) Header() http.Header
- func (c *LiveBroadcastsInsertCuepointCall) Id(id string) *LiveBroadcastsInsertCuepointCall
- func (c *LiveBroadcastsInsertCuepointCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveBroadcastsInsertCuepointCall
- func (c *LiveBroadcastsInsertCuepointCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveBroadcastsInsertCuepointCall
- func (c *LiveBroadcastsInsertCuepointCall) Part(part ...string) *LiveBroadcastsInsertCuepointCall
- type LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) BroadcastStatus(broadcastStatus string) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) BroadcastType(broadcastType string) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) Context(ctx context.Context) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) Do(opts ...googleapi.CallOption) (*LiveBroadcastListResponse, error)
- func (c *LiveBroadcastsListCall) Fields(s ...googleapi.Field) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) Header() http.Header
- func (c *LiveBroadcastsListCall) Id(id ...string) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) IfNoneMatch(entityTag string) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) MaxResults(maxResults int64) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) Mine(mine bool) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) PageToken(pageToken string) *LiveBroadcastsListCall
- func (c *LiveBroadcastsListCall) Pages(ctx context.Context, f func(*LiveBroadcastListResponse) error) error
- type LiveBroadcastsService
- func (r *LiveBroadcastsService) Bind(id string, part []string) *LiveBroadcastsBindCall
- func (r *LiveBroadcastsService) Delete(id string) *LiveBroadcastsDeleteCall
- func (r *LiveBroadcastsService) Insert(part []string, livebroadcast *LiveBroadcast) *LiveBroadcastsInsertCall
- func (r *LiveBroadcastsService) InsertCuepoint(cuepoint *Cuepoint) *LiveBroadcastsInsertCuepointCall
- func (r *LiveBroadcastsService) List(part []string) *LiveBroadcastsListCall
- func (r *LiveBroadcastsService) Transition(broadcastStatus string, id string, part []string) *LiveBroadcastsTransitionCall
- func (r *LiveBroadcastsService) Update(part []string, livebroadcast *LiveBroadcast) *LiveBroadcastsUpdateCall
- type LiveBroadcastsTransitionCall
- func (c *LiveBroadcastsTransitionCall) Context(ctx context.Context) *LiveBroadcastsTransitionCall
- func (c *LiveBroadcastsTransitionCall) Do(opts ...googleapi.CallOption) (*LiveBroadcast, error)
- func (c *LiveBroadcastsTransitionCall) Fields(s ...googleapi.Field) *LiveBroadcastsTransitionCall
- func (c *LiveBroadcastsTransitionCall) Header() http.Header
- func (c *LiveBroadcastsTransitionCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveBroadcastsTransitionCall
- func (c *LiveBroadcastsTransitionCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveBroadcastsTransitionCall
- type LiveBroadcastsUpdateCall
- func (c *LiveBroadcastsUpdateCall) Context(ctx context.Context) *LiveBroadcastsUpdateCall
- func (c *LiveBroadcastsUpdateCall) Do(opts ...googleapi.CallOption) (*LiveBroadcast, error)
- func (c *LiveBroadcastsUpdateCall) Fields(s ...googleapi.Field) *LiveBroadcastsUpdateCall
- func (c *LiveBroadcastsUpdateCall) Header() http.Header
- func (c *LiveBroadcastsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveBroadcastsUpdateCall
- func (c *LiveBroadcastsUpdateCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveBroadcastsUpdateCall
- type LiveChatBan
- type LiveChatBanSnippet
- type LiveChatBansDeleteCall
- type LiveChatBansInsertCall
- func (c *LiveChatBansInsertCall) Context(ctx context.Context) *LiveChatBansInsertCall
- func (c *LiveChatBansInsertCall) Do(opts ...googleapi.CallOption) (*LiveChatBan, error)
- func (c *LiveChatBansInsertCall) Fields(s ...googleapi.Field) *LiveChatBansInsertCall
- func (c *LiveChatBansInsertCall) Header() http.Header
- type LiveChatBansService
- type LiveChatFanFundingEventDetails
- type LiveChatGiftMembershipReceivedDetails
- type LiveChatMemberMilestoneChatDetails
- type LiveChatMembershipGiftingDetails
- type LiveChatMessage
- type LiveChatMessageAuthorDetails
- type LiveChatMessageDeletedDetails
- type LiveChatMessageListResponse
- type LiveChatMessageRetractedDetails
- type LiveChatMessageSnippet
- type LiveChatMessagesDeleteCall
- func (c *LiveChatMessagesDeleteCall) Context(ctx context.Context) *LiveChatMessagesDeleteCall
- func (c *LiveChatMessagesDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *LiveChatMessagesDeleteCall) Fields(s ...googleapi.Field) *LiveChatMessagesDeleteCall
- func (c *LiveChatMessagesDeleteCall) Header() http.Header
- type LiveChatMessagesInsertCall
- func (c *LiveChatMessagesInsertCall) Context(ctx context.Context) *LiveChatMessagesInsertCall
- func (c *LiveChatMessagesInsertCall) Do(opts ...googleapi.CallOption) (*LiveChatMessage, error)
- func (c *LiveChatMessagesInsertCall) Fields(s ...googleapi.Field) *LiveChatMessagesInsertCall
- func (c *LiveChatMessagesInsertCall) Header() http.Header
- type LiveChatMessagesListCall
- func (c *LiveChatMessagesListCall) Context(ctx context.Context) *LiveChatMessagesListCall
- func (c *LiveChatMessagesListCall) Do(opts ...googleapi.CallOption) (*LiveChatMessageListResponse, error)
- func (c *LiveChatMessagesListCall) Fields(s ...googleapi.Field) *LiveChatMessagesListCall
- func (c *LiveChatMessagesListCall) Header() http.Header
- func (c *LiveChatMessagesListCall) Hl(hl string) *LiveChatMessagesListCall
- func (c *LiveChatMessagesListCall) IfNoneMatch(entityTag string) *LiveChatMessagesListCall
- func (c *LiveChatMessagesListCall) MaxResults(maxResults int64) *LiveChatMessagesListCall
- func (c *LiveChatMessagesListCall) PageToken(pageToken string) *LiveChatMessagesListCall
- func (c *LiveChatMessagesListCall) Pages(ctx context.Context, f func(*LiveChatMessageListResponse) error) error
- func (c *LiveChatMessagesListCall) ProfileImageSize(profileImageSize int64) *LiveChatMessagesListCall
- type LiveChatMessagesService
- func (r *LiveChatMessagesService) Delete(id string) *LiveChatMessagesDeleteCall
- func (r *LiveChatMessagesService) Insert(part []string, livechatmessage *LiveChatMessage) *LiveChatMessagesInsertCall
- func (r *LiveChatMessagesService) List(liveChatId string, part []string) *LiveChatMessagesListCall
- func (r *LiveChatMessagesService) Transition() *LiveChatMessagesTransitionCall
- type LiveChatMessagesTransitionCall
- func (c *LiveChatMessagesTransitionCall) Context(ctx context.Context) *LiveChatMessagesTransitionCall
- func (c *LiveChatMessagesTransitionCall) Do(opts ...googleapi.CallOption) (*LiveChatMessage, error)
- func (c *LiveChatMessagesTransitionCall) Fields(s ...googleapi.Field) *LiveChatMessagesTransitionCall
- func (c *LiveChatMessagesTransitionCall) Header() http.Header
- func (c *LiveChatMessagesTransitionCall) Id(id string) *LiveChatMessagesTransitionCall
- func (c *LiveChatMessagesTransitionCall) Status(status string) *LiveChatMessagesTransitionCall
- type LiveChatModerator
- type LiveChatModeratorListResponse
- type LiveChatModeratorSnippet
- type LiveChatModeratorsDeleteCall
- func (c *LiveChatModeratorsDeleteCall) Context(ctx context.Context) *LiveChatModeratorsDeleteCall
- func (c *LiveChatModeratorsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *LiveChatModeratorsDeleteCall) Fields(s ...googleapi.Field) *LiveChatModeratorsDeleteCall
- func (c *LiveChatModeratorsDeleteCall) Header() http.Header
- type LiveChatModeratorsInsertCall
- func (c *LiveChatModeratorsInsertCall) Context(ctx context.Context) *LiveChatModeratorsInsertCall
- func (c *LiveChatModeratorsInsertCall) Do(opts ...googleapi.CallOption) (*LiveChatModerator, error)
- func (c *LiveChatModeratorsInsertCall) Fields(s ...googleapi.Field) *LiveChatModeratorsInsertCall
- func (c *LiveChatModeratorsInsertCall) Header() http.Header
- type LiveChatModeratorsListCall
- func (c *LiveChatModeratorsListCall) Context(ctx context.Context) *LiveChatModeratorsListCall
- func (c *LiveChatModeratorsListCall) Do(opts ...googleapi.CallOption) (*LiveChatModeratorListResponse, error)
- func (c *LiveChatModeratorsListCall) Fields(s ...googleapi.Field) *LiveChatModeratorsListCall
- func (c *LiveChatModeratorsListCall) Header() http.Header
- func (c *LiveChatModeratorsListCall) IfNoneMatch(entityTag string) *LiveChatModeratorsListCall
- func (c *LiveChatModeratorsListCall) MaxResults(maxResults int64) *LiveChatModeratorsListCall
- func (c *LiveChatModeratorsListCall) PageToken(pageToken string) *LiveChatModeratorsListCall
- func (c *LiveChatModeratorsListCall) Pages(ctx context.Context, f func(*LiveChatModeratorListResponse) error) error
- type LiveChatModeratorsService
- func (r *LiveChatModeratorsService) Delete(id string) *LiveChatModeratorsDeleteCall
- func (r *LiveChatModeratorsService) Insert(part []string, livechatmoderator *LiveChatModerator) *LiveChatModeratorsInsertCall
- func (r *LiveChatModeratorsService) List(liveChatId string, part []string) *LiveChatModeratorsListCall
- type LiveChatNewSponsorDetails
- type LiveChatPollDetails
- type LiveChatPollDetailsPollMetadata
- type LiveChatPollDetailsPollMetadataPollOption
- type LiveChatSuperChatDetails
- type LiveChatSuperStickerDetails
- type LiveChatTextMessageDetails
- type LiveChatUserBannedMessageDetails
- type LiveStream
- type LiveStreamConfigurationIssue
- type LiveStreamContentDetails
- type LiveStreamHealthStatus
- type LiveStreamListResponse
- type LiveStreamSnippet
- type LiveStreamStatus
- type LiveStreamsDeleteCall
- func (c *LiveStreamsDeleteCall) Context(ctx context.Context) *LiveStreamsDeleteCall
- func (c *LiveStreamsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *LiveStreamsDeleteCall) Fields(s ...googleapi.Field) *LiveStreamsDeleteCall
- func (c *LiveStreamsDeleteCall) Header() http.Header
- func (c *LiveStreamsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveStreamsDeleteCall
- func (c *LiveStreamsDeleteCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveStreamsDeleteCall
- type LiveStreamsInsertCall
- func (c *LiveStreamsInsertCall) Context(ctx context.Context) *LiveStreamsInsertCall
- func (c *LiveStreamsInsertCall) Do(opts ...googleapi.CallOption) (*LiveStream, error)
- func (c *LiveStreamsInsertCall) Fields(s ...googleapi.Field) *LiveStreamsInsertCall
- func (c *LiveStreamsInsertCall) Header() http.Header
- func (c *LiveStreamsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveStreamsInsertCall
- func (c *LiveStreamsInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveStreamsInsertCall
- type LiveStreamsListCall
- func (c *LiveStreamsListCall) Context(ctx context.Context) *LiveStreamsListCall
- func (c *LiveStreamsListCall) Do(opts ...googleapi.CallOption) (*LiveStreamListResponse, error)
- func (c *LiveStreamsListCall) Fields(s ...googleapi.Field) *LiveStreamsListCall
- func (c *LiveStreamsListCall) Header() http.Header
- func (c *LiveStreamsListCall) Id(id ...string) *LiveStreamsListCall
- func (c *LiveStreamsListCall) IfNoneMatch(entityTag string) *LiveStreamsListCall
- func (c *LiveStreamsListCall) MaxResults(maxResults int64) *LiveStreamsListCall
- func (c *LiveStreamsListCall) Mine(mine bool) *LiveStreamsListCall
- func (c *LiveStreamsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveStreamsListCall
- func (c *LiveStreamsListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveStreamsListCall
- func (c *LiveStreamsListCall) PageToken(pageToken string) *LiveStreamsListCall
- func (c *LiveStreamsListCall) Pages(ctx context.Context, f func(*LiveStreamListResponse) error) error
- type LiveStreamsService
- func (r *LiveStreamsService) Delete(id string) *LiveStreamsDeleteCall
- func (r *LiveStreamsService) Insert(part []string, livestream *LiveStream) *LiveStreamsInsertCall
- func (r *LiveStreamsService) List(part []string) *LiveStreamsListCall
- func (r *LiveStreamsService) Update(part []string, livestream *LiveStream) *LiveStreamsUpdateCall
- type LiveStreamsUpdateCall
- func (c *LiveStreamsUpdateCall) Context(ctx context.Context) *LiveStreamsUpdateCall
- func (c *LiveStreamsUpdateCall) Do(opts ...googleapi.CallOption) (*LiveStream, error)
- func (c *LiveStreamsUpdateCall) Fields(s ...googleapi.Field) *LiveStreamsUpdateCall
- func (c *LiveStreamsUpdateCall) Header() http.Header
- func (c *LiveStreamsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *LiveStreamsUpdateCall
- func (c *LiveStreamsUpdateCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *LiveStreamsUpdateCall
- type LocalizedProperty
- type LocalizedString
- type Member
- type MemberListResponse
- type MemberSnippet
- type MembersListCall
- func (c *MembersListCall) Context(ctx context.Context) *MembersListCall
- func (c *MembersListCall) Do(opts ...googleapi.CallOption) (*MemberListResponse, error)
- func (c *MembersListCall) Fields(s ...googleapi.Field) *MembersListCall
- func (c *MembersListCall) FilterByMemberChannelId(filterByMemberChannelId string) *MembersListCall
- func (c *MembersListCall) HasAccessToLevel(hasAccessToLevel string) *MembersListCall
- func (c *MembersListCall) Header() http.Header
- func (c *MembersListCall) IfNoneMatch(entityTag string) *MembersListCall
- func (c *MembersListCall) MaxResults(maxResults int64) *MembersListCall
- func (c *MembersListCall) Mode(mode string) *MembersListCall
- func (c *MembersListCall) PageToken(pageToken string) *MembersListCall
- func (c *MembersListCall) Pages(ctx context.Context, f func(*MemberListResponse) error) error
- type MembersService
- type MembershipsDetails
- type MembershipsDuration
- type MembershipsDurationAtLevel
- type MembershipsLevel
- type MembershipsLevelListResponse
- type MembershipsLevelSnippet
- type MembershipsLevelsListCall
- func (c *MembershipsLevelsListCall) Context(ctx context.Context) *MembershipsLevelsListCall
- func (c *MembershipsLevelsListCall) Do(opts ...googleapi.CallOption) (*MembershipsLevelListResponse, error)
- func (c *MembershipsLevelsListCall) Fields(s ...googleapi.Field) *MembershipsLevelsListCall
- func (c *MembershipsLevelsListCall) Header() http.Header
- func (c *MembershipsLevelsListCall) IfNoneMatch(entityTag string) *MembershipsLevelsListCall
- type MembershipsLevelsService
- type MonitorStreamInfo
- type PageInfo
- type Playlist
- type PlaylistContentDetails
- type PlaylistImage
- type PlaylistImageListResponse
- type PlaylistImageSnippet
- type PlaylistImagesDeleteCall
- func (c *PlaylistImagesDeleteCall) Context(ctx context.Context) *PlaylistImagesDeleteCall
- func (c *PlaylistImagesDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *PlaylistImagesDeleteCall) Fields(s ...googleapi.Field) *PlaylistImagesDeleteCall
- func (c *PlaylistImagesDeleteCall) Header() http.Header
- func (c *PlaylistImagesDeleteCall) Id(id string) *PlaylistImagesDeleteCall
- func (c *PlaylistImagesDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistImagesDeleteCall
- type PlaylistImagesInsertCall
- func (c *PlaylistImagesInsertCall) Context(ctx context.Context) *PlaylistImagesInsertCall
- func (c *PlaylistImagesInsertCall) Do(opts ...googleapi.CallOption) (*PlaylistImage, error)
- func (c *PlaylistImagesInsertCall) Fields(s ...googleapi.Field) *PlaylistImagesInsertCall
- func (c *PlaylistImagesInsertCall) Header() http.Header
- func (c *PlaylistImagesInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *PlaylistImagesInsertCall
- func (c *PlaylistImagesInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistImagesInsertCall
- func (c *PlaylistImagesInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *PlaylistImagesInsertCall
- func (c *PlaylistImagesInsertCall) Part(part ...string) *PlaylistImagesInsertCall
- func (c *PlaylistImagesInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *PlaylistImagesInsertCall
- func (c *PlaylistImagesInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *PlaylistImagesInsertCalldeprecated
- type PlaylistImagesListCall
- func (c *PlaylistImagesListCall) Context(ctx context.Context) *PlaylistImagesListCall
- func (c *PlaylistImagesListCall) Do(opts ...googleapi.CallOption) (*PlaylistImageListResponse, error)
- func (c *PlaylistImagesListCall) Fields(s ...googleapi.Field) *PlaylistImagesListCall
- func (c *PlaylistImagesListCall) Header() http.Header
- func (c *PlaylistImagesListCall) IfNoneMatch(entityTag string) *PlaylistImagesListCall
- func (c *PlaylistImagesListCall) MaxResults(maxResults int64) *PlaylistImagesListCall
- func (c *PlaylistImagesListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistImagesListCall
- func (c *PlaylistImagesListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *PlaylistImagesListCall
- func (c *PlaylistImagesListCall) PageToken(pageToken string) *PlaylistImagesListCall
- func (c *PlaylistImagesListCall) Pages(ctx context.Context, f func(*PlaylistImageListResponse) error) error
- func (c *PlaylistImagesListCall) Parent(parent string) *PlaylistImagesListCall
- func (c *PlaylistImagesListCall) Part(part ...string) *PlaylistImagesListCall
- type PlaylistImagesService
- func (r *PlaylistImagesService) Delete() *PlaylistImagesDeleteCall
- func (r *PlaylistImagesService) Insert(playlistimage *PlaylistImage) *PlaylistImagesInsertCall
- func (r *PlaylistImagesService) List() *PlaylistImagesListCall
- func (r *PlaylistImagesService) Update(playlistimage *PlaylistImage) *PlaylistImagesUpdateCall
- type PlaylistImagesUpdateCall
- func (c *PlaylistImagesUpdateCall) Context(ctx context.Context) *PlaylistImagesUpdateCall
- func (c *PlaylistImagesUpdateCall) Do(opts ...googleapi.CallOption) (*PlaylistImage, error)
- func (c *PlaylistImagesUpdateCall) Fields(s ...googleapi.Field) *PlaylistImagesUpdateCall
- func (c *PlaylistImagesUpdateCall) Header() http.Header
- func (c *PlaylistImagesUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *PlaylistImagesUpdateCall
- func (c *PlaylistImagesUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistImagesUpdateCall
- func (c *PlaylistImagesUpdateCall) Part(part ...string) *PlaylistImagesUpdateCall
- func (c *PlaylistImagesUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *PlaylistImagesUpdateCall
- func (c *PlaylistImagesUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *PlaylistImagesUpdateCalldeprecated
- type PlaylistItem
- type PlaylistItemContentDetails
- type PlaylistItemListResponse
- type PlaylistItemSnippet
- type PlaylistItemStatus
- type PlaylistItemsDeleteCall
- func (c *PlaylistItemsDeleteCall) Context(ctx context.Context) *PlaylistItemsDeleteCall
- func (c *PlaylistItemsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *PlaylistItemsDeleteCall) Fields(s ...googleapi.Field) *PlaylistItemsDeleteCall
- func (c *PlaylistItemsDeleteCall) Header() http.Header
- func (c *PlaylistItemsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistItemsDeleteCall
- type PlaylistItemsInsertCall
- func (c *PlaylistItemsInsertCall) Context(ctx context.Context) *PlaylistItemsInsertCall
- func (c *PlaylistItemsInsertCall) Do(opts ...googleapi.CallOption) (*PlaylistItem, error)
- func (c *PlaylistItemsInsertCall) Fields(s ...googleapi.Field) *PlaylistItemsInsertCall
- func (c *PlaylistItemsInsertCall) Header() http.Header
- func (c *PlaylistItemsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistItemsInsertCall
- type PlaylistItemsListCall
- func (c *PlaylistItemsListCall) Context(ctx context.Context) *PlaylistItemsListCall
- func (c *PlaylistItemsListCall) Do(opts ...googleapi.CallOption) (*PlaylistItemListResponse, error)
- func (c *PlaylistItemsListCall) Fields(s ...googleapi.Field) *PlaylistItemsListCall
- func (c *PlaylistItemsListCall) Header() http.Header
- func (c *PlaylistItemsListCall) Id(id ...string) *PlaylistItemsListCall
- func (c *PlaylistItemsListCall) IfNoneMatch(entityTag string) *PlaylistItemsListCall
- func (c *PlaylistItemsListCall) MaxResults(maxResults int64) *PlaylistItemsListCall
- func (c *PlaylistItemsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistItemsListCall
- func (c *PlaylistItemsListCall) PageToken(pageToken string) *PlaylistItemsListCall
- func (c *PlaylistItemsListCall) Pages(ctx context.Context, f func(*PlaylistItemListResponse) error) error
- func (c *PlaylistItemsListCall) PlaylistId(playlistId string) *PlaylistItemsListCall
- func (c *PlaylistItemsListCall) VideoId(videoId string) *PlaylistItemsListCall
- type PlaylistItemsService
- func (r *PlaylistItemsService) Delete(id string) *PlaylistItemsDeleteCall
- func (r *PlaylistItemsService) Insert(part []string, playlistitem *PlaylistItem) *PlaylistItemsInsertCall
- func (r *PlaylistItemsService) List(part []string) *PlaylistItemsListCall
- func (r *PlaylistItemsService) Update(part []string, playlistitem *PlaylistItem) *PlaylistItemsUpdateCall
- type PlaylistItemsUpdateCall
- func (c *PlaylistItemsUpdateCall) Context(ctx context.Context) *PlaylistItemsUpdateCall
- func (c *PlaylistItemsUpdateCall) Do(opts ...googleapi.CallOption) (*PlaylistItem, error)
- func (c *PlaylistItemsUpdateCall) Fields(s ...googleapi.Field) *PlaylistItemsUpdateCall
- func (c *PlaylistItemsUpdateCall) Header() http.Header
- func (c *PlaylistItemsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistItemsUpdateCall
- type PlaylistListResponse
- type PlaylistLocalization
- type PlaylistPlayer
- type PlaylistSnippet
- type PlaylistStatus
- type PlaylistsDeleteCall
- func (c *PlaylistsDeleteCall) Context(ctx context.Context) *PlaylistsDeleteCall
- func (c *PlaylistsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *PlaylistsDeleteCall) Fields(s ...googleapi.Field) *PlaylistsDeleteCall
- func (c *PlaylistsDeleteCall) Header() http.Header
- func (c *PlaylistsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistsDeleteCall
- type PlaylistsInsertCall
- func (c *PlaylistsInsertCall) Context(ctx context.Context) *PlaylistsInsertCall
- func (c *PlaylistsInsertCall) Do(opts ...googleapi.CallOption) (*Playlist, error)
- func (c *PlaylistsInsertCall) Fields(s ...googleapi.Field) *PlaylistsInsertCall
- func (c *PlaylistsInsertCall) Header() http.Header
- func (c *PlaylistsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistsInsertCall
- func (c *PlaylistsInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *PlaylistsInsertCall
- type PlaylistsListCall
- func (c *PlaylistsListCall) ChannelId(channelId string) *PlaylistsListCall
- func (c *PlaylistsListCall) Context(ctx context.Context) *PlaylistsListCall
- func (c *PlaylistsListCall) Do(opts ...googleapi.CallOption) (*PlaylistListResponse, error)
- func (c *PlaylistsListCall) Fields(s ...googleapi.Field) *PlaylistsListCall
- func (c *PlaylistsListCall) Header() http.Header
- func (c *PlaylistsListCall) Hl(hl string) *PlaylistsListCall
- func (c *PlaylistsListCall) Id(id ...string) *PlaylistsListCall
- func (c *PlaylistsListCall) IfNoneMatch(entityTag string) *PlaylistsListCall
- func (c *PlaylistsListCall) MaxResults(maxResults int64) *PlaylistsListCall
- func (c *PlaylistsListCall) Mine(mine bool) *PlaylistsListCall
- func (c *PlaylistsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistsListCall
- func (c *PlaylistsListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *PlaylistsListCall
- func (c *PlaylistsListCall) PageToken(pageToken string) *PlaylistsListCall
- func (c *PlaylistsListCall) Pages(ctx context.Context, f func(*PlaylistListResponse) error) error
- type PlaylistsService
- func (r *PlaylistsService) Delete(id string) *PlaylistsDeleteCall
- func (r *PlaylistsService) Insert(part []string, playlist *Playlist) *PlaylistsInsertCall
- func (r *PlaylistsService) List(part []string) *PlaylistsListCall
- func (r *PlaylistsService) Update(part []string, playlist *Playlist) *PlaylistsUpdateCall
- type PlaylistsUpdateCall
- func (c *PlaylistsUpdateCall) Context(ctx context.Context) *PlaylistsUpdateCall
- func (c *PlaylistsUpdateCall) Do(opts ...googleapi.CallOption) (*Playlist, error)
- func (c *PlaylistsUpdateCall) Fields(s ...googleapi.Field) *PlaylistsUpdateCall
- func (c *PlaylistsUpdateCall) Header() http.Header
- func (c *PlaylistsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *PlaylistsUpdateCall
- type PropertyValue
- type RelatedEntity
- type ResourceId
- type SearchListCall
- func (c *SearchListCall) ChannelId(channelId string) *SearchListCall
- func (c *SearchListCall) ChannelType(channelType string) *SearchListCall
- func (c *SearchListCall) Context(ctx context.Context) *SearchListCall
- func (c *SearchListCall) Do(opts ...googleapi.CallOption) (*SearchListResponse, error)
- func (c *SearchListCall) EventType(eventType string) *SearchListCall
- func (c *SearchListCall) Fields(s ...googleapi.Field) *SearchListCall
- func (c *SearchListCall) ForContentOwner(forContentOwner bool) *SearchListCall
- func (c *SearchListCall) ForDeveloper(forDeveloper bool) *SearchListCall
- func (c *SearchListCall) ForMine(forMine bool) *SearchListCall
- func (c *SearchListCall) Header() http.Header
- func (c *SearchListCall) IfNoneMatch(entityTag string) *SearchListCall
- func (c *SearchListCall) Location(location string) *SearchListCall
- func (c *SearchListCall) LocationRadius(locationRadius string) *SearchListCall
- func (c *SearchListCall) MaxResults(maxResults int64) *SearchListCall
- func (c *SearchListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *SearchListCall
- func (c *SearchListCall) Order(order string) *SearchListCall
- func (c *SearchListCall) PageToken(pageToken string) *SearchListCall
- func (c *SearchListCall) Pages(ctx context.Context, f func(*SearchListResponse) error) error
- func (c *SearchListCall) PublishedAfter(publishedAfter string) *SearchListCall
- func (c *SearchListCall) PublishedBefore(publishedBefore string) *SearchListCall
- func (c *SearchListCall) Q(q string) *SearchListCall
- func (c *SearchListCall) RegionCode(regionCode string) *SearchListCall
- func (c *SearchListCall) RelevanceLanguage(relevanceLanguage string) *SearchListCall
- func (c *SearchListCall) SafeSearch(safeSearch string) *SearchListCall
- func (c *SearchListCall) TopicId(topicId string) *SearchListCall
- func (c *SearchListCall) Type(type_ ...string) *SearchListCall
- func (c *SearchListCall) VideoCaption(videoCaption string) *SearchListCall
- func (c *SearchListCall) VideoCategoryId(videoCategoryId string) *SearchListCall
- func (c *SearchListCall) VideoDefinition(videoDefinition string) *SearchListCall
- func (c *SearchListCall) VideoDimension(videoDimension string) *SearchListCall
- func (c *SearchListCall) VideoDuration(videoDuration string) *SearchListCall
- func (c *SearchListCall) VideoEmbeddable(videoEmbeddable string) *SearchListCall
- func (c *SearchListCall) VideoLicense(videoLicense string) *SearchListCall
- func (c *SearchListCall) VideoPaidProductPlacement(videoPaidProductPlacement string) *SearchListCall
- func (c *SearchListCall) VideoSyndicated(videoSyndicated string) *SearchListCall
- func (c *SearchListCall) VideoType(videoType string) *SearchListCall
- type SearchListResponse
- type SearchResult
- type SearchResultSnippet
- type SearchService
- type Service
- type Subscription
- type SubscriptionContentDetails
- type SubscriptionListResponse
- type SubscriptionSnippet
- type SubscriptionSubscriberSnippet
- type SubscriptionsDeleteCall
- func (c *SubscriptionsDeleteCall) Context(ctx context.Context) *SubscriptionsDeleteCall
- func (c *SubscriptionsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *SubscriptionsDeleteCall) Fields(s ...googleapi.Field) *SubscriptionsDeleteCall
- func (c *SubscriptionsDeleteCall) Header() http.Header
- type SubscriptionsInsertCall
- func (c *SubscriptionsInsertCall) Context(ctx context.Context) *SubscriptionsInsertCall
- func (c *SubscriptionsInsertCall) Do(opts ...googleapi.CallOption) (*Subscription, error)
- func (c *SubscriptionsInsertCall) Fields(s ...googleapi.Field) *SubscriptionsInsertCall
- func (c *SubscriptionsInsertCall) Header() http.Header
- type SubscriptionsListCall
- func (c *SubscriptionsListCall) ChannelId(channelId string) *SubscriptionsListCall
- func (c *SubscriptionsListCall) Context(ctx context.Context) *SubscriptionsListCall
- func (c *SubscriptionsListCall) Do(opts ...googleapi.CallOption) (*SubscriptionListResponse, error)
- func (c *SubscriptionsListCall) Fields(s ...googleapi.Field) *SubscriptionsListCall
- func (c *SubscriptionsListCall) ForChannelId(forChannelId string) *SubscriptionsListCall
- func (c *SubscriptionsListCall) Header() http.Header
- func (c *SubscriptionsListCall) Id(id ...string) *SubscriptionsListCall
- func (c *SubscriptionsListCall) IfNoneMatch(entityTag string) *SubscriptionsListCall
- func (c *SubscriptionsListCall) MaxResults(maxResults int64) *SubscriptionsListCall
- func (c *SubscriptionsListCall) Mine(mine bool) *SubscriptionsListCall
- func (c *SubscriptionsListCall) MyRecentSubscribers(myRecentSubscribers bool) *SubscriptionsListCall
- func (c *SubscriptionsListCall) MySubscribers(mySubscribers bool) *SubscriptionsListCall
- func (c *SubscriptionsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *SubscriptionsListCall
- func (c *SubscriptionsListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *SubscriptionsListCall
- func (c *SubscriptionsListCall) Order(order string) *SubscriptionsListCall
- func (c *SubscriptionsListCall) PageToken(pageToken string) *SubscriptionsListCall
- func (c *SubscriptionsListCall) Pages(ctx context.Context, f func(*SubscriptionListResponse) error) error
- type SubscriptionsService
- type SuperChatEvent
- type SuperChatEventListResponse
- type SuperChatEventSnippet
- type SuperChatEventsListCall
- func (c *SuperChatEventsListCall) Context(ctx context.Context) *SuperChatEventsListCall
- func (c *SuperChatEventsListCall) Do(opts ...googleapi.CallOption) (*SuperChatEventListResponse, error)
- func (c *SuperChatEventsListCall) Fields(s ...googleapi.Field) *SuperChatEventsListCall
- func (c *SuperChatEventsListCall) Header() http.Header
- func (c *SuperChatEventsListCall) Hl(hl string) *SuperChatEventsListCall
- func (c *SuperChatEventsListCall) IfNoneMatch(entityTag string) *SuperChatEventsListCall
- func (c *SuperChatEventsListCall) MaxResults(maxResults int64) *SuperChatEventsListCall
- func (c *SuperChatEventsListCall) PageToken(pageToken string) *SuperChatEventsListCall
- func (c *SuperChatEventsListCall) Pages(ctx context.Context, f func(*SuperChatEventListResponse) error) error
- type SuperChatEventsService
- type SuperStickerMetadata
- type TestItem
- type TestItemTestItemSnippet
- type TestsInsertCall
- func (c *TestsInsertCall) Context(ctx context.Context) *TestsInsertCall
- func (c *TestsInsertCall) Do(opts ...googleapi.CallOption) (*TestItem, error)
- func (c *TestsInsertCall) ExternalChannelId(externalChannelId string) *TestsInsertCall
- func (c *TestsInsertCall) Fields(s ...googleapi.Field) *TestsInsertCall
- func (c *TestsInsertCall) Header() http.Header
- type TestsService
- type ThirdPartyLink
- type ThirdPartyLinkListResponse
- type ThirdPartyLinkSnippet
- type ThirdPartyLinkStatus
- type ThirdPartyLinksDeleteCall
- func (c *ThirdPartyLinksDeleteCall) Context(ctx context.Context) *ThirdPartyLinksDeleteCall
- func (c *ThirdPartyLinksDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ThirdPartyLinksDeleteCall) ExternalChannelId(externalChannelId string) *ThirdPartyLinksDeleteCall
- func (c *ThirdPartyLinksDeleteCall) Fields(s ...googleapi.Field) *ThirdPartyLinksDeleteCall
- func (c *ThirdPartyLinksDeleteCall) Header() http.Header
- func (c *ThirdPartyLinksDeleteCall) Part(part ...string) *ThirdPartyLinksDeleteCall
- type ThirdPartyLinksInsertCall
- func (c *ThirdPartyLinksInsertCall) Context(ctx context.Context) *ThirdPartyLinksInsertCall
- func (c *ThirdPartyLinksInsertCall) Do(opts ...googleapi.CallOption) (*ThirdPartyLink, error)
- func (c *ThirdPartyLinksInsertCall) ExternalChannelId(externalChannelId string) *ThirdPartyLinksInsertCall
- func (c *ThirdPartyLinksInsertCall) Fields(s ...googleapi.Field) *ThirdPartyLinksInsertCall
- func (c *ThirdPartyLinksInsertCall) Header() http.Header
- type ThirdPartyLinksListCall
- func (c *ThirdPartyLinksListCall) Context(ctx context.Context) *ThirdPartyLinksListCall
- func (c *ThirdPartyLinksListCall) Do(opts ...googleapi.CallOption) (*ThirdPartyLinkListResponse, error)
- func (c *ThirdPartyLinksListCall) ExternalChannelId(externalChannelId string) *ThirdPartyLinksListCall
- func (c *ThirdPartyLinksListCall) Fields(s ...googleapi.Field) *ThirdPartyLinksListCall
- func (c *ThirdPartyLinksListCall) Header() http.Header
- func (c *ThirdPartyLinksListCall) IfNoneMatch(entityTag string) *ThirdPartyLinksListCall
- func (c *ThirdPartyLinksListCall) LinkingToken(linkingToken string) *ThirdPartyLinksListCall
- func (c *ThirdPartyLinksListCall) Type(type_ string) *ThirdPartyLinksListCall
- type ThirdPartyLinksService
- func (r *ThirdPartyLinksService) Delete(linkingToken string, type_ string) *ThirdPartyLinksDeleteCall
- func (r *ThirdPartyLinksService) Insert(part []string, thirdpartylink *ThirdPartyLink) *ThirdPartyLinksInsertCall
- func (r *ThirdPartyLinksService) List(part []string) *ThirdPartyLinksListCall
- func (r *ThirdPartyLinksService) Update(part []string, thirdpartylink *ThirdPartyLink) *ThirdPartyLinksUpdateCall
- type ThirdPartyLinksUpdateCall
- func (c *ThirdPartyLinksUpdateCall) Context(ctx context.Context) *ThirdPartyLinksUpdateCall
- func (c *ThirdPartyLinksUpdateCall) Do(opts ...googleapi.CallOption) (*ThirdPartyLink, error)
- func (c *ThirdPartyLinksUpdateCall) ExternalChannelId(externalChannelId string) *ThirdPartyLinksUpdateCall
- func (c *ThirdPartyLinksUpdateCall) Fields(s ...googleapi.Field) *ThirdPartyLinksUpdateCall
- func (c *ThirdPartyLinksUpdateCall) Header() http.Header
- type Thumbnail
- type ThumbnailDetails
- type ThumbnailSetResponse
- type ThumbnailsService
- type ThumbnailsSetCall
- func (c *ThumbnailsSetCall) Context(ctx context.Context) *ThumbnailsSetCall
- func (c *ThumbnailsSetCall) Do(opts ...googleapi.CallOption) (*ThumbnailSetResponse, error)
- func (c *ThumbnailsSetCall) Fields(s ...googleapi.Field) *ThumbnailsSetCall
- func (c *ThumbnailsSetCall) Header() http.Header
- func (c *ThumbnailsSetCall) Media(r io.Reader, options ...googleapi.MediaOption) *ThumbnailsSetCall
- func (c *ThumbnailsSetCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *ThumbnailsSetCall
- func (c *ThumbnailsSetCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ThumbnailsSetCall
- func (c *ThumbnailsSetCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ThumbnailsSetCalldeprecated
- type TokenPagination
- type Video
- type VideoAbuseReport
- type VideoAbuseReportReason
- type VideoAbuseReportReasonListResponse
- type VideoAbuseReportReasonSnippet
- type VideoAbuseReportReasonsListCall
- func (c *VideoAbuseReportReasonsListCall) Context(ctx context.Context) *VideoAbuseReportReasonsListCall
- func (c *VideoAbuseReportReasonsListCall) Do(opts ...googleapi.CallOption) (*VideoAbuseReportReasonListResponse, error)
- func (c *VideoAbuseReportReasonsListCall) Fields(s ...googleapi.Field) *VideoAbuseReportReasonsListCall
- func (c *VideoAbuseReportReasonsListCall) Header() http.Header
- func (c *VideoAbuseReportReasonsListCall) Hl(hl string) *VideoAbuseReportReasonsListCall
- func (c *VideoAbuseReportReasonsListCall) IfNoneMatch(entityTag string) *VideoAbuseReportReasonsListCall
- type VideoAbuseReportReasonsService
- type VideoAbuseReportSecondaryReason
- type VideoAgeGating
- type VideoCategoriesListCall
- func (c *VideoCategoriesListCall) Context(ctx context.Context) *VideoCategoriesListCall
- func (c *VideoCategoriesListCall) Do(opts ...googleapi.CallOption) (*VideoCategoryListResponse, error)
- func (c *VideoCategoriesListCall) Fields(s ...googleapi.Field) *VideoCategoriesListCall
- func (c *VideoCategoriesListCall) Header() http.Header
- func (c *VideoCategoriesListCall) Hl(hl string) *VideoCategoriesListCall
- func (c *VideoCategoriesListCall) Id(id ...string) *VideoCategoriesListCall
- func (c *VideoCategoriesListCall) IfNoneMatch(entityTag string) *VideoCategoriesListCall
- func (c *VideoCategoriesListCall) RegionCode(regionCode string) *VideoCategoriesListCall
- type VideoCategoriesService
- type VideoCategory
- type VideoCategoryListResponse
- type VideoCategorySnippet
- type VideoContentDetails
- type VideoContentDetailsRegionRestriction
- type VideoFileDetails
- type VideoFileDetailsAudioStream
- type VideoFileDetailsVideoStream
- type VideoGetRatingResponse
- type VideoListResponse
- type VideoLiveStreamingDetails
- type VideoLocalization
- type VideoMonetizationDetails
- type VideoPaidProductPlacementDetails
- type VideoPlayer
- type VideoProcessingDetails
- type VideoProcessingDetailsProcessingProgress
- type VideoProjectDetails
- type VideoRating
- type VideoRecordingDetails
- type VideoSnippet
- type VideoStat
- type VideoStatistics
- type VideoStatsContentDetails
- type VideoStatsSnippet
- type VideoStatsStatistics
- type VideoStatus
- type VideoSuggestions
- type VideoSuggestionsTagSuggestion
- type VideoTopicDetails
- type VideoTrainability
- type VideoTrainabilityGetCall
- func (c *VideoTrainabilityGetCall) Context(ctx context.Context) *VideoTrainabilityGetCall
- func (c *VideoTrainabilityGetCall) Do(opts ...googleapi.CallOption) (*VideoTrainability, error)
- func (c *VideoTrainabilityGetCall) Fields(s ...googleapi.Field) *VideoTrainabilityGetCall
- func (c *VideoTrainabilityGetCall) Header() http.Header
- func (c *VideoTrainabilityGetCall) Id(id string) *VideoTrainabilityGetCall
- func (c *VideoTrainabilityGetCall) IfNoneMatch(entityTag string) *VideoTrainabilityGetCall
- type VideoTrainabilityService
- type VideosDeleteCall
- func (c *VideosDeleteCall) Context(ctx context.Context) *VideosDeleteCall
- func (c *VideosDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *VideosDeleteCall) Fields(s ...googleapi.Field) *VideosDeleteCall
- func (c *VideosDeleteCall) Header() http.Header
- func (c *VideosDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *VideosDeleteCall
- type VideosGetRatingCall
- func (c *VideosGetRatingCall) Context(ctx context.Context) *VideosGetRatingCall
- func (c *VideosGetRatingCall) Do(opts ...googleapi.CallOption) (*VideoGetRatingResponse, error)
- func (c *VideosGetRatingCall) Fields(s ...googleapi.Field) *VideosGetRatingCall
- func (c *VideosGetRatingCall) Header() http.Header
- func (c *VideosGetRatingCall) IfNoneMatch(entityTag string) *VideosGetRatingCall
- func (c *VideosGetRatingCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *VideosGetRatingCall
- type VideosInsertCall
- func (c *VideosInsertCall) AutoLevels(autoLevels bool) *VideosInsertCall
- func (c *VideosInsertCall) Context(ctx context.Context) *VideosInsertCall
- func (c *VideosInsertCall) Do(opts ...googleapi.CallOption) (*Video, error)
- func (c *VideosInsertCall) Fields(s ...googleapi.Field) *VideosInsertCall
- func (c *VideosInsertCall) Header() http.Header
- func (c *VideosInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *VideosInsertCall
- func (c *VideosInsertCall) NotifySubscribers(notifySubscribers bool) *VideosInsertCall
- func (c *VideosInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *VideosInsertCall
- func (c *VideosInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *VideosInsertCall
- func (c *VideosInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *VideosInsertCall
- func (c *VideosInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *VideosInsertCalldeprecated
- func (c *VideosInsertCall) Stabilize(stabilize bool) *VideosInsertCall
- type VideosListCall
- func (c *VideosListCall) Chart(chart string) *VideosListCall
- func (c *VideosListCall) Context(ctx context.Context) *VideosListCall
- func (c *VideosListCall) Do(opts ...googleapi.CallOption) (*VideoListResponse, error)
- func (c *VideosListCall) Fields(s ...googleapi.Field) *VideosListCall
- func (c *VideosListCall) Header() http.Header
- func (c *VideosListCall) Hl(hl string) *VideosListCall
- func (c *VideosListCall) Id(id ...string) *VideosListCall
- func (c *VideosListCall) IfNoneMatch(entityTag string) *VideosListCall
- func (c *VideosListCall) Locale(locale string) *VideosListCall
- func (c *VideosListCall) MaxHeight(maxHeight int64) *VideosListCall
- func (c *VideosListCall) MaxResults(maxResults int64) *VideosListCall
- func (c *VideosListCall) MaxWidth(maxWidth int64) *VideosListCall
- func (c *VideosListCall) MyRating(myRating string) *VideosListCall
- func (c *VideosListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *VideosListCall
- func (c *VideosListCall) PageToken(pageToken string) *VideosListCall
- func (c *VideosListCall) Pages(ctx context.Context, f func(*VideoListResponse) error) error
- func (c *VideosListCall) RegionCode(regionCode string) *VideosListCall
- func (c *VideosListCall) VideoCategoryId(videoCategoryId string) *VideosListCall
- type VideosRateCall
- type VideosReportAbuseCall
- func (c *VideosReportAbuseCall) Context(ctx context.Context) *VideosReportAbuseCall
- func (c *VideosReportAbuseCall) Do(opts ...googleapi.CallOption) error
- func (c *VideosReportAbuseCall) Fields(s ...googleapi.Field) *VideosReportAbuseCall
- func (c *VideosReportAbuseCall) Header() http.Header
- func (c *VideosReportAbuseCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *VideosReportAbuseCall
- type VideosService
- func (r *VideosService) Delete(id string) *VideosDeleteCall
- func (r *VideosService) GetRating(id []string) *VideosGetRatingCall
- func (r *VideosService) Insert(part []string, video *Video) *VideosInsertCall
- func (r *VideosService) List(part []string) *VideosListCall
- func (r *VideosService) Rate(id string, rating string) *VideosRateCall
- func (r *VideosService) ReportAbuse(videoabusereport *VideoAbuseReport) *VideosReportAbuseCall
- func (r *VideosService) Update(part []string, video *Video) *VideosUpdateCall
- type VideosUpdateCall
- func (c *VideosUpdateCall) Context(ctx context.Context) *VideosUpdateCall
- func (c *VideosUpdateCall) Do(opts ...googleapi.CallOption) (*Video, error)
- func (c *VideosUpdateCall) Fields(s ...googleapi.Field) *VideosUpdateCall
- func (c *VideosUpdateCall) Header() http.Header
- func (c *VideosUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *VideosUpdateCall
- type WatchSettings
- type WatermarksService
- type WatermarksSetCall
- func (c *WatermarksSetCall) Context(ctx context.Context) *WatermarksSetCall
- func (c *WatermarksSetCall) Do(opts ...googleapi.CallOption) error
- func (c *WatermarksSetCall) Fields(s ...googleapi.Field) *WatermarksSetCall
- func (c *WatermarksSetCall) Header() http.Header
- func (c *WatermarksSetCall) Media(r io.Reader, options ...googleapi.MediaOption) *WatermarksSetCall
- func (c *WatermarksSetCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *WatermarksSetCall
- func (c *WatermarksSetCall) ProgressUpdater(pu googleapi.ProgressUpdater) *WatermarksSetCall
- func (c *WatermarksSetCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *WatermarksSetCalldeprecated
- type WatermarksUnsetCall
- func (c *WatermarksUnsetCall) Context(ctx context.Context) *WatermarksUnsetCall
- func (c *WatermarksUnsetCall) Do(opts ...googleapi.CallOption) error
- func (c *WatermarksUnsetCall) Fields(s ...googleapi.Field) *WatermarksUnsetCall
- func (c *WatermarksUnsetCall) Header() http.Header
- func (c *WatermarksUnsetCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *WatermarksUnsetCall
- type YoutubeService
- type YoutubeV3LiveChatMessagesService
- type YoutubeV3LiveChatMessagesStreamCall
- func (c *YoutubeV3LiveChatMessagesStreamCall) Context(ctx context.Context) *YoutubeV3LiveChatMessagesStreamCall
- func (c *YoutubeV3LiveChatMessagesStreamCall) Do(opts ...googleapi.CallOption) (*LiveChatMessageListResponse, error)
- func (c *YoutubeV3LiveChatMessagesStreamCall) Fields(s ...googleapi.Field) *YoutubeV3LiveChatMessagesStreamCall
- func (c *YoutubeV3LiveChatMessagesStreamCall) Header() http.Header
- func (c *YoutubeV3LiveChatMessagesStreamCall) Hl(hl string) *YoutubeV3LiveChatMessagesStreamCall
- func (c *YoutubeV3LiveChatMessagesStreamCall) IfNoneMatch(entityTag string) *YoutubeV3LiveChatMessagesStreamCall
- func (c *YoutubeV3LiveChatMessagesStreamCall) LiveChatId(liveChatId string) *YoutubeV3LiveChatMessagesStreamCall
- func (c *YoutubeV3LiveChatMessagesStreamCall) MaxResults(maxResults int64) *YoutubeV3LiveChatMessagesStreamCall
- func (c *YoutubeV3LiveChatMessagesStreamCall) PageToken(pageToken string) *YoutubeV3LiveChatMessagesStreamCall
- func (c *YoutubeV3LiveChatMessagesStreamCall) Pages(ctx context.Context, f func(*LiveChatMessageListResponse) error) error
- func (c *YoutubeV3LiveChatMessagesStreamCall) Part(part ...string) *YoutubeV3LiveChatMessagesStreamCall
- func (c *YoutubeV3LiveChatMessagesStreamCall) ProfileImageSize(profileImageSize int64) *YoutubeV3LiveChatMessagesStreamCall
- type YoutubeV3LiveChatService
- type YoutubeV3Service
- type YoutubeV3UpdateCommentThreadsCall
- func (c *YoutubeV3UpdateCommentThreadsCall) Context(ctx context.Context) *YoutubeV3UpdateCommentThreadsCall
- func (c *YoutubeV3UpdateCommentThreadsCall) Do(opts ...googleapi.CallOption) (*CommentThread, error)
- func (c *YoutubeV3UpdateCommentThreadsCall) Fields(s ...googleapi.Field) *YoutubeV3UpdateCommentThreadsCall
- func (c *YoutubeV3UpdateCommentThreadsCall) Header() http.Header
- func (c *YoutubeV3UpdateCommentThreadsCall) Part(part ...string) *YoutubeV3UpdateCommentThreadsCall
- type YoutubeV3VideosBatchGetStatsCall
- func (c *YoutubeV3VideosBatchGetStatsCall) Context(ctx context.Context) *YoutubeV3VideosBatchGetStatsCall
- func (c *YoutubeV3VideosBatchGetStatsCall) Do(opts ...googleapi.CallOption) (*BatchGetStatsResponse, error)
- func (c *YoutubeV3VideosBatchGetStatsCall) Fields(s ...googleapi.Field) *YoutubeV3VideosBatchGetStatsCall
- func (c *YoutubeV3VideosBatchGetStatsCall) Header() http.Header
- func (c *YoutubeV3VideosBatchGetStatsCall) IfNoneMatch(entityTag string) *YoutubeV3VideosBatchGetStatsCall
- func (c *YoutubeV3VideosBatchGetStatsCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *YoutubeV3VideosBatchGetStatsCall
- func (c *YoutubeV3VideosBatchGetStatsCall) Part(part ...string) *YoutubeV3VideosBatchGetStatsCall
- func (c *YoutubeV3VideosBatchGetStatsCall) VideoIds(videoIds ...string) *YoutubeV3VideosBatchGetStatsCall
- type YoutubeV3VideosService
Constants¶
const (// Manage your YouTube accountYoutubeScope = "https://www.googleapis.com/auth/youtube"// See a list of your current active channel members, their current level, and// when they became a memberYoutubeChannelMembershipsCreatorScope = "https://www.googleapis.com/auth/youtube.channel-memberships.creator"// See, edit, and permanently delete your YouTube videos, ratings, comments and// captionsYoutubeForceSslScope = "https://www.googleapis.com/auth/youtube.force-ssl"// View your YouTube accountYoutubeReadonlyScope = "https://www.googleapis.com/auth/youtube.readonly"// Manage your YouTube videosYoutubeUploadScope = "https://www.googleapis.com/auth/youtube.upload"// View and manage your assets and associated content on YouTubeYoutubepartnerScope = "https://www.googleapis.com/auth/youtubepartner"// View private information of your YouTube channel relevant during the audit// process with a YouTube partnerYoutubepartnerChannelAuditScope = "https://www.googleapis.com/auth/youtubepartner-channel-audit")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAbuseReport¶added inv0.29.0
type AbuseReport struct {AbuseTypes []*AbuseType `json:"abuseTypes,omitempty"`Descriptionstring `json:"description,omitempty"`RelatedEntities []*RelatedEntity `json:"relatedEntities,omitempty"`Subject *Entity `json:"subject,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AbuseTypes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AbuseTypes") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (AbuseReport)MarshalJSON¶added inv0.29.0
func (sAbuseReport) MarshalJSON() ([]byte,error)
typeAbuseReportsInsertCall¶added inv0.29.0
type AbuseReportsInsertCall struct {// contains filtered or unexported fields}func (*AbuseReportsInsertCall)Context¶added inv0.29.0
func (c *AbuseReportsInsertCall) Context(ctxcontext.Context) *AbuseReportsInsertCall
Context sets the context to be used in this call's Do method.
func (*AbuseReportsInsertCall)Do¶added inv0.29.0
func (c *AbuseReportsInsertCall) Do(opts ...googleapi.CallOption) (*AbuseReport,error)
Do executes the "youtube.abuseReports.insert" call.Any non-2xx status code is an error. Response headers are in either*AbuseReport.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*AbuseReportsInsertCall)Fields¶added inv0.29.0
func (c *AbuseReportsInsertCall) Fields(s ...googleapi.Field) *AbuseReportsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*AbuseReportsInsertCall)Header¶added inv0.29.0
func (c *AbuseReportsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeAbuseReportsService¶added inv0.29.0
type AbuseReportsService struct {// contains filtered or unexported fields}funcNewAbuseReportsService¶added inv0.29.0
func NewAbuseReportsService(s *Service) *AbuseReportsService
func (*AbuseReportsService)Insert¶added inv0.29.0
func (r *AbuseReportsService) Insert(part []string, abusereport *AbuseReport) *AbuseReportsInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include.
typeAbuseType¶added inv0.29.0
type AbuseType struct {Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (AbuseType)MarshalJSON¶added inv0.29.0
typeAccessPolicy¶
type AccessPolicy struct {// Allowed: The value of allowed indicates whether the access to the policy is// allowed or denied by default.Allowedbool `json:"allowed,omitempty"`// Exception: A list of region codes that identify countries where the default// policy do not apply.Exception []string `json:"exception,omitempty"`// ForceSendFields is a list of field names (e.g. "Allowed") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Allowed") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AccessPolicy: Rights management policy for YouTube resources.
func (AccessPolicy)MarshalJSON¶
func (sAccessPolicy) MarshalJSON() ([]byte,error)
typeActivitiesListCall¶
type ActivitiesListCall struct {// contains filtered or unexported fields}func (*ActivitiesListCall)ChannelId¶
func (c *ActivitiesListCall) ChannelId(channelIdstring) *ActivitiesListCall
ChannelId sets the optional parameter "channelId":
func (*ActivitiesListCall)Context¶
func (c *ActivitiesListCall) Context(ctxcontext.Context) *ActivitiesListCall
Context sets the context to be used in this call's Do method.
func (*ActivitiesListCall)Do¶
func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityListResponse,error)
Do executes the "youtube.activities.list" call.Any non-2xx status code is an error. Response headers are in either*ActivityListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ActivitiesListCall)Fields¶
func (c *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ActivitiesListCall)Header¶
func (c *ActivitiesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ActivitiesListCall)Home¶
func (c *ActivitiesListCall) Home(homebool) *ActivitiesListCall
Home sets the optional parameter "home":
func (*ActivitiesListCall)IfNoneMatch¶
func (c *ActivitiesListCall) IfNoneMatch(entityTagstring) *ActivitiesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ActivitiesListCall)MaxResults¶
func (c *ActivitiesListCall) MaxResults(maxResultsint64) *ActivitiesListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*ActivitiesListCall)Mine¶
func (c *ActivitiesListCall) Mine(minebool) *ActivitiesListCall
Mine sets the optional parameter "mine":
func (*ActivitiesListCall)PageToken¶
func (c *ActivitiesListCall) PageToken(pageTokenstring) *ActivitiesListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*ActivitiesListCall)Pages¶
func (c *ActivitiesListCall) Pages(ctxcontext.Context, f func(*ActivityListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*ActivitiesListCall)PublishedAfter¶
func (c *ActivitiesListCall) PublishedAfter(publishedAfterstring) *ActivitiesListCall
PublishedAfter sets the optional parameter "publishedAfter":
func (*ActivitiesListCall)PublishedBefore¶
func (c *ActivitiesListCall) PublishedBefore(publishedBeforestring) *ActivitiesListCall
PublishedBefore sets the optional parameter "publishedBefore":
func (*ActivitiesListCall)RegionCode¶
func (c *ActivitiesListCall) RegionCode(regionCodestring) *ActivitiesListCall
RegionCode sets the optional parameter "regionCode":
typeActivitiesService¶
type ActivitiesService struct {// contains filtered or unexported fields}funcNewActivitiesService¶
func NewActivitiesService(s *Service) *ActivitiesService
func (*ActivitiesService)List¶
func (r *ActivitiesService) List(part []string) *ActivitiesListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or moreactivity resource properties that the API response will include. If theparameter identifies a property that contains child properties, the childproperties will be included in the response. For example, in an activityresource, the snippet property contains other properties that identify thetype of activity, a display title for the activity, and so forth. If youset *part=snippet*, the API response will also contain all of those nestedproperties.
typeActivity¶
type Activity struct {// ContentDetails: The contentDetails object contains information about the// content associated with the activity. For example, if the snippet.type value// is videoRated, then the contentDetails object's content identifies the rated// video.ContentDetails *ActivityContentDetails `json:"contentDetails,omitempty"`// Etag: Etag of this resourceEtagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the activity.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#activity".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the activity,// including the activity's type and group ID.Snippet *ActivitySnippet `json:"snippet,omitempty"`// ForceSendFields is a list of field names (e.g. "ContentDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentDetails") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Activity: An *activity* resource contains information about an action that aparticular channel, or user, has taken on YouTube.The actions reported inactivity feeds include rating a video, sharing a video, marking a video as afavorite, commenting on a video, uploading a video, and so forth. Eachactivity resource identifies the type of action, the channel associated withthe action, and the resource(s) associated with the action, such as thevideo that was rated or uploaded.
func (Activity)MarshalJSON¶
typeActivityContentDetails¶
type ActivityContentDetails struct {// Bulletin: The bulletin object contains details about a channel bulletin// post. This object is only present if the snippet.type is bulletin.Bulletin *ActivityContentDetailsBulletin `json:"bulletin,omitempty"`// ChannelItem: The channelItem object contains details about a resource which// was added to a channel. This property is only present if the snippet.type is// channelItem.ChannelItem *ActivityContentDetailsChannelItem `json:"channelItem,omitempty"`// Comment: The comment object contains information about a resource that// received a comment. This property is only present if the snippet.type is// comment.Comment *ActivityContentDetailsComment `json:"comment,omitempty"`// Favorite: The favorite object contains information about a video that was// marked as a favorite video. This property is only present if the// snippet.type is favorite.Favorite *ActivityContentDetailsFavorite `json:"favorite,omitempty"`// Like: The like object contains information about a resource that received a// positive (like) rating. This property is only present if the snippet.type is// like.Like *ActivityContentDetailsLike `json:"like,omitempty"`// PlaylistItem: The playlistItem object contains information about a new// playlist item. This property is only present if the snippet.type is// playlistItem.PlaylistItem *ActivityContentDetailsPlaylistItem `json:"playlistItem,omitempty"`// PromotedItem: The promotedItem object contains details about a resource// which is being promoted. This property is only present if the snippet.type// is promotedItem.PromotedItem *ActivityContentDetailsPromotedItem `json:"promotedItem,omitempty"`// Recommendation: The recommendation object contains information about a// recommended resource. This property is only present if the snippet.type is// recommendation.Recommendation *ActivityContentDetailsRecommendation `json:"recommendation,omitempty"`// Social: The social object contains details about a social network post. This// property is only present if the snippet.type is social.Social *ActivityContentDetailsSocial `json:"social,omitempty"`// Subscription: The subscription object contains information about a channel// that a user subscribed to. This property is only present if the snippet.type// is subscription.Subscription *ActivityContentDetailsSubscription `json:"subscription,omitempty"`// Upload: The upload object contains information about the uploaded video.// This property is only present if the snippet.type is upload.Upload *ActivityContentDetailsUpload `json:"upload,omitempty"`// ForceSendFields is a list of field names (e.g. "Bulletin") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Bulletin") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetails: Details about the content of an activity: the videothat was shared, the channel that was subscribed to, etc.
func (ActivityContentDetails)MarshalJSON¶
func (sActivityContentDetails) MarshalJSON() ([]byte,error)
typeActivityContentDetailsBulletin¶
type ActivityContentDetailsBulletin struct {// ResourceId: The resourceId object contains information that identifies the// resource associated with a bulletin post. @mutable youtube.activities.insertResourceId *ResourceId `json:"resourceId,omitempty"`// ForceSendFields is a list of field names (e.g. "ResourceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResourceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsBulletin: Details about a channel bulletin post.
func (ActivityContentDetailsBulletin)MarshalJSON¶
func (sActivityContentDetailsBulletin) MarshalJSON() ([]byte,error)
typeActivityContentDetailsChannelItem¶
type ActivityContentDetailsChannelItem struct {// ResourceId: The resourceId object contains information that identifies the// resource that was added to the channel.ResourceId *ResourceId `json:"resourceId,omitempty"`// ForceSendFields is a list of field names (e.g. "ResourceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResourceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsChannelItem: Details about a resource which was addedto a channel.
func (ActivityContentDetailsChannelItem)MarshalJSON¶
func (sActivityContentDetailsChannelItem) MarshalJSON() ([]byte,error)
typeActivityContentDetailsComment¶
type ActivityContentDetailsComment struct {// ResourceId: The resourceId object contains information that identifies the// resource associated with the comment.ResourceId *ResourceId `json:"resourceId,omitempty"`// ForceSendFields is a list of field names (e.g. "ResourceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResourceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsComment: Information about a resource that received acomment.
func (ActivityContentDetailsComment)MarshalJSON¶
func (sActivityContentDetailsComment) MarshalJSON() ([]byte,error)
typeActivityContentDetailsFavorite¶
type ActivityContentDetailsFavorite struct {// ResourceId: The resourceId object contains information that identifies the// resource that was marked as a favorite.ResourceId *ResourceId `json:"resourceId,omitempty"`// ForceSendFields is a list of field names (e.g. "ResourceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResourceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsFavorite: Information about a video that was marked asa favorite video.
func (ActivityContentDetailsFavorite)MarshalJSON¶
func (sActivityContentDetailsFavorite) MarshalJSON() ([]byte,error)
typeActivityContentDetailsLike¶
type ActivityContentDetailsLike struct {// ResourceId: The resourceId object contains information that identifies the// rated resource.ResourceId *ResourceId `json:"resourceId,omitempty"`// ForceSendFields is a list of field names (e.g. "ResourceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResourceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsLike: Information about a resource that received apositive (like) rating.
func (ActivityContentDetailsLike)MarshalJSON¶
func (sActivityContentDetailsLike) MarshalJSON() ([]byte,error)
typeActivityContentDetailsPlaylistItem¶
type ActivityContentDetailsPlaylistItem struct {// PlaylistId: The value that YouTube uses to uniquely identify the playlist.PlaylistIdstring `json:"playlistId,omitempty"`// PlaylistItemId: ID of the item within the playlist.PlaylistItemIdstring `json:"playlistItemId,omitempty"`// ResourceId: The resourceId object contains information about the resource// that was added to the playlist.ResourceId *ResourceId `json:"resourceId,omitempty"`// ForceSendFields is a list of field names (e.g. "PlaylistId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PlaylistId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsPlaylistItem: Information about a new playlist item.
func (ActivityContentDetailsPlaylistItem)MarshalJSON¶
func (sActivityContentDetailsPlaylistItem) MarshalJSON() ([]byte,error)
typeActivityContentDetailsPromotedItem¶
type ActivityContentDetailsPromotedItem struct {// AdTag: The URL the client should fetch to request a promoted item.AdTagstring `json:"adTag,omitempty"`// ClickTrackingUrl: The URL the client should ping to indicate that the user// clicked through on this promoted item.ClickTrackingUrlstring `json:"clickTrackingUrl,omitempty"`// CreativeViewUrl: The URL the client should ping to indicate that the user// was shown this promoted item.CreativeViewUrlstring `json:"creativeViewUrl,omitempty"`// CtaType: The type of call-to-action, a message to the user indicating action// that can be taken.//// Possible values:// "ctaTypeUnspecified"// "visitAdvertiserSite"CtaTypestring `json:"ctaType,omitempty"`// CustomCtaButtonText: The custom call-to-action button text. If specified, it// will override the default button text for the cta_type.CustomCtaButtonTextstring `json:"customCtaButtonText,omitempty"`// DescriptionText: The text description to accompany the promoted item.DescriptionTextstring `json:"descriptionText,omitempty"`// DestinationUrl: The URL the client should direct the user to, if the user// chooses to visit the advertiser's website.DestinationUrlstring `json:"destinationUrl,omitempty"`// ForecastingUrl: The list of forecasting URLs. The client should ping all of// these URLs when a promoted item is not available, to indicate that a// promoted item could have been shown.ForecastingUrl []string `json:"forecastingUrl,omitempty"`// ImpressionUrl: The list of impression URLs. The client should ping all of// these URLs to indicate that the user was shown this promoted item.ImpressionUrl []string `json:"impressionUrl,omitempty"`// VideoId: The ID that YouTube uses to uniquely identify the promoted video.VideoIdstring `json:"videoId,omitempty"`// ForceSendFields is a list of field names (e.g. "AdTag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdTag") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsPromotedItem: Details about a resource which is beingpromoted.
func (ActivityContentDetailsPromotedItem)MarshalJSON¶
func (sActivityContentDetailsPromotedItem) MarshalJSON() ([]byte,error)
typeActivityContentDetailsRecommendation¶
type ActivityContentDetailsRecommendation struct {// Reason: The reason that the resource is recommended to the user.//// Possible values:// "reasonUnspecified"// "videoFavorited"// "videoLiked"// "videoWatched"Reasonstring `json:"reason,omitempty"`// ResourceId: The resourceId object contains information that identifies the// recommended resource.ResourceId *ResourceId `json:"resourceId,omitempty"`// SeedResourceId: The seedResourceId object contains information about the// resource that caused the recommendation.SeedResourceId *ResourceId `json:"seedResourceId,omitempty"`// ForceSendFields is a list of field names (e.g. "Reason") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Reason") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsRecommendation: Information that identifies therecommended resource.
func (ActivityContentDetailsRecommendation)MarshalJSON¶
func (sActivityContentDetailsRecommendation) MarshalJSON() ([]byte,error)
typeActivityContentDetailsSocial¶
type ActivityContentDetailsSocial struct {// Author: The author of the social network post.Authorstring `json:"author,omitempty"`// ImageUrl: An image of the post's author.ImageUrlstring `json:"imageUrl,omitempty"`// ReferenceUrl: The URL of the social network post.ReferenceUrlstring `json:"referenceUrl,omitempty"`// ResourceId: The resourceId object encapsulates information that identifies// the resource associated with a social network post.ResourceId *ResourceId `json:"resourceId,omitempty"`// Type: The name of the social network.//// Possible values:// "unspecified"// "googlePlus"// "facebook"// "twitter"Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Author") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Author") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsSocial: Details about a social network post.
func (ActivityContentDetailsSocial)MarshalJSON¶
func (sActivityContentDetailsSocial) MarshalJSON() ([]byte,error)
typeActivityContentDetailsSubscription¶
type ActivityContentDetailsSubscription struct {// ResourceId: The resourceId object contains information that identifies the// resource that the user subscribed to.ResourceId *ResourceId `json:"resourceId,omitempty"`// ForceSendFields is a list of field names (e.g. "ResourceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResourceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsSubscription: Information about a channel that a usersubscribed to.
func (ActivityContentDetailsSubscription)MarshalJSON¶
func (sActivityContentDetailsSubscription) MarshalJSON() ([]byte,error)
typeActivityContentDetailsUpload¶
type ActivityContentDetailsUpload struct {// VideoId: The ID that YouTube uses to uniquely identify the uploaded video.VideoIdstring `json:"videoId,omitempty"`// ForceSendFields is a list of field names (e.g. "VideoId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "VideoId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivityContentDetailsUpload: Information about the uploaded video.
func (ActivityContentDetailsUpload)MarshalJSON¶
func (sActivityContentDetailsUpload) MarshalJSON() ([]byte,error)
typeActivityListResponse¶
type ActivityListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`Items []*Activity `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#activityListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ActivityListResponse)MarshalJSON¶
func (sActivityListResponse) MarshalJSON() ([]byte,error)
typeActivitySnippet¶
type ActivitySnippet struct {// ChannelId: The ID that YouTube uses to uniquely identify the channel// associated with the activity.ChannelIdstring `json:"channelId,omitempty"`// ChannelTitle: Channel title for the channel responsible for this activityChannelTitlestring `json:"channelTitle,omitempty"`// Description: The description of the resource primarily associated with the// activity. @mutable youtube.activities.insertDescriptionstring `json:"description,omitempty"`// GroupId: The group ID associated with the activity. A group ID identifies// user events that are associated with the same user and resource. For// example, if a user rates a video and marks the same video as a favorite, the// entries for those events would have the same group ID in the user's activity// feed. In your user interface, you can avoid repetition by grouping events// with the same groupId value.GroupIdstring `json:"groupId,omitempty"`// PublishedAt: The date and time that the video was uploaded.PublishedAtstring `json:"publishedAt,omitempty"`// Thumbnails: A map of thumbnail images associated with the resource that is// primarily associated with the activity. For each object in the map, the key// is the name of the thumbnail image, and the value is an object that contains// other information about the thumbnail.Thumbnails *ThumbnailDetails `json:"thumbnails,omitempty"`// Title: The title of the resource primarily associated with the activity.Titlestring `json:"title,omitempty"`// Type: The type of activity that the resource describes.//// Possible values:// "typeUnspecified"// "upload"// "like"// "favorite"// "comment"// "subscription"// "playlistItem"// "recommendation"// "bulletin"// "social"// "channelItem"// "promotedItem"Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActivitySnippet: Basic details about an activity, including title,description, thumbnails, activity type and group. Next ID: 12
func (ActivitySnippet)MarshalJSON¶
func (sActivitySnippet) MarshalJSON() ([]byte,error)
typeBatchGetStatsResponse¶added inv0.257.0
type BatchGetStatsResponse struct {// Etag: Output only. Etag of this resource.Etagstring `json:"etag,omitempty"`// Items: Output only. The videos' stats information.Items []*VideoStat `json:"items,omitempty"`// Kind: Output only. Identifies what kind of resource this is. Value: the// fixed string "youtube#batchGetStatsResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}BatchGetStatsResponse: Response for the Videos.stats API. Returns VideoStatinformation about a batch of videos. VideoStat contains a subset of theinformation in Video that is relevant to statistics and content details.
func (BatchGetStatsResponse)MarshalJSON¶added inv0.257.0
func (sBatchGetStatsResponse) MarshalJSON() ([]byte,error)
typeCaption¶
type Caption struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the caption track.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#caption".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the caption.Snippet *CaptionSnippet `json:"snippet,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Caption: A *caption* resource represents a YouTube caption track. A captiontrack is associated with exactly one YouTube video.
func (Caption)MarshalJSON¶
typeCaptionListResponse¶
type CaptionListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of captions that match the request criteria.Items []*Caption `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#captionListResponse".Kindstring `json:"kind,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (CaptionListResponse)MarshalJSON¶
func (sCaptionListResponse) MarshalJSON() ([]byte,error)
typeCaptionSnippet¶
type CaptionSnippet struct {// AudioTrackType: The type of audio track associated with the caption track.//// Possible values:// "unknown"// "primary"// "commentary"// "descriptive"AudioTrackTypestring `json:"audioTrackType,omitempty"`// FailureReason: The reason that YouTube failed to process the caption track.// This property is only present if the state property's value is failed.//// Possible values:// "unknownFormat"// "unsupportedFormat"// "processingFailed"FailureReasonstring `json:"failureReason,omitempty"`// IsAutoSynced: Indicates whether YouTube synchronized the caption track to// the audio track in the video. The value will be true if a sync was// explicitly requested when the caption track was uploaded. For example, when// calling the captions.insert or captions.update methods, you can set the sync// parameter to true to instruct YouTube to sync the uploaded track to the// video. If the value is false, YouTube uses the time codes in the uploaded// caption track to determine when to display captions.IsAutoSyncedbool `json:"isAutoSynced,omitempty"`// IsCC: Indicates whether the track contains closed captions for the deaf and// hard of hearing. The default value is false.IsCCbool `json:"isCC,omitempty"`// IsDraft: Indicates whether the caption track is a draft. If the value is// true, then the track is not publicly visible. The default value is false.// @mutable youtube.captions.insert youtube.captions.updateIsDraftbool `json:"isDraft,omitempty"`// IsEasyReader: Indicates whether caption track is formatted for "easy// reader," meaning it is at a third-grade level for language learners. The// default value is false.IsEasyReaderbool `json:"isEasyReader,omitempty"`// IsLarge: Indicates whether the caption track uses large text for the// vision-impaired. The default value is false.IsLargebool `json:"isLarge,omitempty"`// Language: The language of the caption track. The property value is a BCP-47// language tag.Languagestring `json:"language,omitempty"`// LastUpdated: The date and time when the caption track was last updated.LastUpdatedstring `json:"lastUpdated,omitempty"`// Name: The name of the caption track. The name is intended to be visible to// the user as an option during playback.Namestring `json:"name,omitempty"`// Status: The caption track's status.//// Possible values:// "serving"// "syncing"// "failed"Statusstring `json:"status,omitempty"`// TrackKind: The caption track's type.//// Possible values:// "standard"// "ASR"// "forced"TrackKindstring `json:"trackKind,omitempty"`// VideoId: The ID that YouTube uses to uniquely identify the video associated// with the caption track. @mutable youtube.captions.insertVideoIdstring `json:"videoId,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioTrackType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AudioTrackType") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CaptionSnippet: Basic details about a caption track, such as its languageand name.
func (CaptionSnippet)MarshalJSON¶
func (sCaptionSnippet) MarshalJSON() ([]byte,error)
typeCaptionsDeleteCall¶
type CaptionsDeleteCall struct {// contains filtered or unexported fields}func (*CaptionsDeleteCall)Context¶
func (c *CaptionsDeleteCall) Context(ctxcontext.Context) *CaptionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*CaptionsDeleteCall)Do¶
func (c *CaptionsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.captions.delete" call.
func (*CaptionsDeleteCall)Fields¶
func (c *CaptionsDeleteCall) Fields(s ...googleapi.Field) *CaptionsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CaptionsDeleteCall)Header¶
func (c *CaptionsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*CaptionsDeleteCall)OnBehalfOf¶
func (c *CaptionsDeleteCall) OnBehalfOf(onBehalfOfstring) *CaptionsDeleteCall
OnBehalfOf sets the optional parameter "onBehalfOf": ID of the Google+ Pagefor the channel that the request is be on behalf of
func (*CaptionsDeleteCall)OnBehalfOfContentOwner¶
func (c *CaptionsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *CaptionsDeleteCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The actual CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
typeCaptionsDownloadCall¶
type CaptionsDownloadCall struct {// contains filtered or unexported fields}func (*CaptionsDownloadCall)Context¶
func (c *CaptionsDownloadCall) Context(ctxcontext.Context) *CaptionsDownloadCall
Context sets the context to be used in this call's Do and Download methods.
func (*CaptionsDownloadCall)Do¶
func (c *CaptionsDownloadCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.captions.download" call.
func (*CaptionsDownloadCall)Download¶
func (c *CaptionsDownloadCall) Download(opts ...googleapi.CallOption) (*http.Response,error)
Download fetches the API endpoint's "media" value, instead of the normalAPI response value. If the returned error is nil, the Response is guaranteed tohave a 2xx status code. Callers must close the Response.Body as usual.
func (*CaptionsDownloadCall)Fields¶
func (c *CaptionsDownloadCall) Fields(s ...googleapi.Field) *CaptionsDownloadCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CaptionsDownloadCall)Header¶
func (c *CaptionsDownloadCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*CaptionsDownloadCall)IfNoneMatch¶
func (c *CaptionsDownloadCall) IfNoneMatch(entityTagstring) *CaptionsDownloadCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*CaptionsDownloadCall)OnBehalfOf¶
func (c *CaptionsDownloadCall) OnBehalfOf(onBehalfOfstring) *CaptionsDownloadCall
OnBehalfOf sets the optional parameter "onBehalfOf": ID of the Google+ Pagefor the channel that the request is be on behalf of
func (*CaptionsDownloadCall)OnBehalfOfContentOwner¶
func (c *CaptionsDownloadCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *CaptionsDownloadCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The actual CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
func (*CaptionsDownloadCall)Tfmt¶
func (c *CaptionsDownloadCall) Tfmt(tfmtstring) *CaptionsDownloadCall
Tfmt sets the optional parameter "tfmt": Convert the captions into thisformat. Supported options are sbv, srt, and vtt.
func (*CaptionsDownloadCall)Tlang¶
func (c *CaptionsDownloadCall) Tlang(tlangstring) *CaptionsDownloadCall
Tlang sets the optional parameter "tlang": tlang is the language code;machine translate the captions into this language.
typeCaptionsInsertCall¶
type CaptionsInsertCall struct {// contains filtered or unexported fields}func (*CaptionsInsertCall)Context¶
func (c *CaptionsInsertCall) Context(ctxcontext.Context) *CaptionsInsertCall
Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.
func (*CaptionsInsertCall)Do¶
func (c *CaptionsInsertCall) Do(opts ...googleapi.CallOption) (*Caption,error)
Do executes the "youtube.captions.insert" call.Any non-2xx status code is an error. Response headers are in either*Caption.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*CaptionsInsertCall)Fields¶
func (c *CaptionsInsertCall) Fields(s ...googleapi.Field) *CaptionsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CaptionsInsertCall)Header¶
func (c *CaptionsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*CaptionsInsertCall)Media¶
func (c *CaptionsInsertCall) Media(rio.Reader, options ...googleapi.MediaOption) *CaptionsInsertCall
Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.
func (*CaptionsInsertCall)OnBehalfOf¶
func (c *CaptionsInsertCall) OnBehalfOf(onBehalfOfstring) *CaptionsInsertCall
OnBehalfOf sets the optional parameter "onBehalfOf": ID of the Google+ Pagefor the channel that the request is be on behalf of
func (*CaptionsInsertCall)OnBehalfOfContentOwner¶
func (c *CaptionsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *CaptionsInsertCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The actual CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
func (*CaptionsInsertCall)ProgressUpdater¶
func (c *CaptionsInsertCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *CaptionsInsertCall
ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).
func (*CaptionsInsertCall)ResumableMediadeprecated
func (c *CaptionsInsertCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *CaptionsInsertCall
ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.
func (*CaptionsInsertCall)Sync¶
func (c *CaptionsInsertCall) Sync(syncbool) *CaptionsInsertCall
Sync sets the optional parameter "sync": Extra parameter to allowautomatically syncing the uploaded caption/transcript with the audio.
typeCaptionsListCall¶
type CaptionsListCall struct {// contains filtered or unexported fields}func (*CaptionsListCall)Context¶
func (c *CaptionsListCall) Context(ctxcontext.Context) *CaptionsListCall
Context sets the context to be used in this call's Do method.
func (*CaptionsListCall)Do¶
func (c *CaptionsListCall) Do(opts ...googleapi.CallOption) (*CaptionListResponse,error)
Do executes the "youtube.captions.list" call.Any non-2xx status code is an error. Response headers are in either*CaptionListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*CaptionsListCall)Fields¶
func (c *CaptionsListCall) Fields(s ...googleapi.Field) *CaptionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CaptionsListCall)Header¶
func (c *CaptionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*CaptionsListCall)Id¶
func (c *CaptionsListCall) Id(id ...string) *CaptionsListCall
Id sets the optional parameter "id": Returns the captions with the given IDsfor Stubby or Apiary.
func (*CaptionsListCall)IfNoneMatch¶
func (c *CaptionsListCall) IfNoneMatch(entityTagstring) *CaptionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*CaptionsListCall)OnBehalfOf¶
func (c *CaptionsListCall) OnBehalfOf(onBehalfOfstring) *CaptionsListCall
OnBehalfOf sets the optional parameter "onBehalfOf": ID of the Google+ Pagefor the channel that the request is on behalf of.
func (*CaptionsListCall)OnBehalfOfContentOwner¶
func (c *CaptionsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *CaptionsListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The actual CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
typeCaptionsService¶
type CaptionsService struct {// contains filtered or unexported fields}funcNewCaptionsService¶
func NewCaptionsService(s *Service) *CaptionsService
func (*CaptionsService)Delete¶
func (r *CaptionsService) Delete(idstring) *CaptionsDeleteCall
Delete: Deletes a resource.
- id: .
func (*CaptionsService)Download¶
func (r *CaptionsService) Download(idstring) *CaptionsDownloadCall
Download: Downloads a caption track.
- id: The ID of the caption track to download, required for One Platform.
func (*CaptionsService)Insert¶
func (r *CaptionsService) Insert(part []string, caption *Caption) *CaptionsInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter specifies the caption resource parts that theAPI response will include. Set the parameter value to snippet.
func (*CaptionsService)List¶
func (r *CaptionsService) List(part []string, videoIdstring) *CaptionsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or morecaption resource parts that the API response will include. The part namesthat you can include in the parameter value are id and snippet.
- videoId: Returns the captions for the specified video.
func (*CaptionsService)Update¶
func (r *CaptionsService) Update(part []string, caption *Caption) *CaptionsUpdateCall
Update: Updates an existing resource.
- part: The *part* parameter specifies a comma-separated list of one or morecaption resource parts that the API response will include. The part namesthat you can include in the parameter value are id and snippet.
typeCaptionsUpdateCall¶
type CaptionsUpdateCall struct {// contains filtered or unexported fields}func (*CaptionsUpdateCall)Context¶
func (c *CaptionsUpdateCall) Context(ctxcontext.Context) *CaptionsUpdateCall
Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.
func (*CaptionsUpdateCall)Do¶
func (c *CaptionsUpdateCall) Do(opts ...googleapi.CallOption) (*Caption,error)
Do executes the "youtube.captions.update" call.Any non-2xx status code is an error. Response headers are in either*Caption.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*CaptionsUpdateCall)Fields¶
func (c *CaptionsUpdateCall) Fields(s ...googleapi.Field) *CaptionsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CaptionsUpdateCall)Header¶
func (c *CaptionsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*CaptionsUpdateCall)Media¶
func (c *CaptionsUpdateCall) Media(rio.Reader, options ...googleapi.MediaOption) *CaptionsUpdateCall
Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.
func (*CaptionsUpdateCall)OnBehalfOf¶
func (c *CaptionsUpdateCall) OnBehalfOf(onBehalfOfstring) *CaptionsUpdateCall
OnBehalfOf sets the optional parameter "onBehalfOf": ID of the Google+ Pagefor the channel that the request is on behalf of.
func (*CaptionsUpdateCall)OnBehalfOfContentOwner¶
func (c *CaptionsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *CaptionsUpdateCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The actual CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
func (*CaptionsUpdateCall)ProgressUpdater¶
func (c *CaptionsUpdateCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *CaptionsUpdateCall
ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).
func (*CaptionsUpdateCall)ResumableMediadeprecated
func (c *CaptionsUpdateCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *CaptionsUpdateCall
ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.
func (*CaptionsUpdateCall)Sync¶
func (c *CaptionsUpdateCall) Sync(syncbool) *CaptionsUpdateCall
Sync sets the optional parameter "sync": Extra parameter to allowautomatically syncing the uploaded caption/transcript with the audio.
typeCdnSettings¶
type CdnSettings struct {// Format: The format of the video stream that you are sending to Youtube.Formatstring `json:"format,omitempty"`// FrameRate: The frame rate of the inbound video data.//// Possible values:// "30fps"// "60fps"// "variable"FrameRatestring `json:"frameRate,omitempty"`// IngestionInfo: The ingestionInfo object contains information that YouTube// provides that you need to transmit your RTMP or HTTP stream to YouTube.IngestionInfo *IngestionInfo `json:"ingestionInfo,omitempty"`// IngestionType: The method or protocol used to transmit the video stream.//// Possible values:// "rtmp"// "dash"// "webrtc"// "hls"IngestionTypestring `json:"ingestionType,omitempty"`// Resolution: The resolution of the inbound video data.//// Possible values:// "240p"// "360p"// "480p"// "720p"// "1080p"// "1440p"// "2160p"// "variable"Resolutionstring `json:"resolution,omitempty"`// ForceSendFields is a list of field names (e.g. "Format") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Format") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CdnSettings: Brief description of the live stream cdn settings.
func (CdnSettings)MarshalJSON¶
func (sCdnSettings) MarshalJSON() ([]byte,error)
typeChannel¶
type Channel struct {// AuditDetails: The auditionDetails object encapsulates channel data that is// relevant for YouTube Partners during the audition process.AuditDetails *ChannelAuditDetails `json:"auditDetails,omitempty"`// BrandingSettings: The brandingSettings object encapsulates information about// the branding of the channel.BrandingSettings *ChannelBrandingSettings `json:"brandingSettings,omitempty"`// ContentDetails: The contentDetails object encapsulates information about the// channel's content.ContentDetails *ChannelContentDetails `json:"contentDetails,omitempty"`// ContentOwnerDetails: The contentOwnerDetails object encapsulates channel// data that is relevant for YouTube Partners linked with the channel.ContentOwnerDetails *ChannelContentOwnerDetails `json:"contentOwnerDetails,omitempty"`// ConversionPings: The conversionPings object encapsulates information about// conversion pings that need to be respected by the channel.ConversionPings *ChannelConversionPings `json:"conversionPings,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the channel.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#channel".Kindstring `json:"kind,omitempty"`// Localizations: Localizations for different languagesLocalizations map[string]ChannelLocalization `json:"localizations,omitempty"`// Snippet: The snippet object contains basic details about the channel, such// as its title, description, and thumbnail images.Snippet *ChannelSnippet `json:"snippet,omitempty"`// Statistics: The statistics object encapsulates statistics for the channel.Statistics *ChannelStatistics `json:"statistics,omitempty"`// Status: The status object encapsulates information about the privacy status// of the channel.Status *ChannelStatus `json:"status,omitempty"`// TopicDetails: The topicDetails object encapsulates information about// Freebase topics associated with the channel.TopicDetails *ChannelTopicDetails `json:"topicDetails,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AuditDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuditDetails") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Channel: A *channel* resource contains information about a YouTube channel.
func (Channel)MarshalJSON¶
typeChannelAuditDetails¶
type ChannelAuditDetails struct {// CommunityGuidelinesGoodStanding: Whether or not the channel respects the// community guidelines.CommunityGuidelinesGoodStandingbool `json:"communityGuidelinesGoodStanding,omitempty"`// ContentIdClaimsGoodStanding: Whether or not the channel has any unresolved// claims.ContentIdClaimsGoodStandingbool `json:"contentIdClaimsGoodStanding,omitempty"`// CopyrightStrikesGoodStanding: Whether or not the channel has any copyright// strikes.CopyrightStrikesGoodStandingbool `json:"copyrightStrikesGoodStanding,omitempty"`// ForceSendFields is a list of field names (e.g.// "CommunityGuidelinesGoodStanding") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CommunityGuidelinesGoodStanding")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelAuditDetails: The auditDetails object encapsulates channel data thatis relevant for YouTube Partners during the audit process.
func (ChannelAuditDetails)MarshalJSON¶
func (sChannelAuditDetails) MarshalJSON() ([]byte,error)
typeChannelBannerResource¶
type ChannelBannerResource struct {Etagstring `json:"etag,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#channelBannerResource".Kindstring `json:"kind,omitempty"`// Url: The URL of this banner image.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelBannerResource: A channel banner returned as the response to achannel_banner.insert call.
func (ChannelBannerResource)MarshalJSON¶
func (sChannelBannerResource) MarshalJSON() ([]byte,error)
typeChannelBannersInsertCall¶
type ChannelBannersInsertCall struct {// contains filtered or unexported fields}func (*ChannelBannersInsertCall)ChannelId¶
func (c *ChannelBannersInsertCall) ChannelId(channelIdstring) *ChannelBannersInsertCall
ChannelId sets the optional parameter "channelId": Unused, channel_id iscurrently derived from the security context of the requestor.
func (*ChannelBannersInsertCall)Context¶
func (c *ChannelBannersInsertCall) Context(ctxcontext.Context) *ChannelBannersInsertCall
Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.
func (*ChannelBannersInsertCall)Do¶
func (c *ChannelBannersInsertCall) Do(opts ...googleapi.CallOption) (*ChannelBannerResource,error)
Do executes the "youtube.channelBanners.insert" call.Any non-2xx status code is an error. Response headers are in either*ChannelBannerResource.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ChannelBannersInsertCall)Fields¶
func (c *ChannelBannersInsertCall) Fields(s ...googleapi.Field) *ChannelBannersInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ChannelBannersInsertCall)Header¶
func (c *ChannelBannersInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ChannelBannersInsertCall)Media¶
func (c *ChannelBannersInsertCall) Media(rio.Reader, options ...googleapi.MediaOption) *ChannelBannersInsertCall
Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.
func (*ChannelBannersInsertCall)OnBehalfOfContentOwner¶
func (c *ChannelBannersInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *ChannelBannersInsertCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The actual CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
func (*ChannelBannersInsertCall)OnBehalfOfContentOwnerChannel¶added inv0.27.0
func (c *ChannelBannersInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *ChannelBannersInsertCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*ChannelBannersInsertCall)ProgressUpdater¶
func (c *ChannelBannersInsertCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *ChannelBannersInsertCall
ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).
func (*ChannelBannersInsertCall)ResumableMediadeprecated
func (c *ChannelBannersInsertCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *ChannelBannersInsertCall
ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.
typeChannelBannersService¶
type ChannelBannersService struct {// contains filtered or unexported fields}funcNewChannelBannersService¶
func NewChannelBannersService(s *Service) *ChannelBannersService
func (*ChannelBannersService)Insert¶
func (r *ChannelBannersService) Insert(channelbannerresource *ChannelBannerResource) *ChannelBannersInsertCall
Insert: Inserts a new resource into this collection.
typeChannelBrandingSettings¶
type ChannelBrandingSettings struct {// Channel: Branding properties for the channel view.Channel *ChannelSettings `json:"channel,omitempty"`// Hints: Additional experimental branding properties.Hints []*PropertyValue `json:"hints,omitempty"`// Image: Branding properties for branding images.Image *ImageSettings `json:"image,omitempty"`// Watch: Branding properties for the watch page.Watch *WatchSettings `json:"watch,omitempty"`// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Channel") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelBrandingSettings: Branding properties of a YouTube channel.
func (ChannelBrandingSettings)MarshalJSON¶
func (sChannelBrandingSettings) MarshalJSON() ([]byte,error)
typeChannelContentDetails¶
type ChannelContentDetails struct {RelatedPlaylists *ChannelContentDetailsRelatedPlaylists `json:"relatedPlaylists,omitempty"`// ForceSendFields is a list of field names (e.g. "RelatedPlaylists") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RelatedPlaylists") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelContentDetails: Details about the content of a channel.
func (ChannelContentDetails)MarshalJSON¶
func (sChannelContentDetails) MarshalJSON() ([]byte,error)
typeChannelContentDetailsRelatedPlaylists¶
type ChannelContentDetailsRelatedPlaylists struct {// Favorites: The ID of the playlist that contains the channel"s favorite// videos. Use the playlistItems.insert and playlistItems.delete to add or// remove items from that list.Favoritesstring `json:"favorites,omitempty"`// Likes: The ID of the playlist that contains the channel"s liked videos. Use// the playlistItems.insert and playlistItems.delete to add or remove items// from that list.Likesstring `json:"likes,omitempty"`// Uploads: The ID of the playlist that contains the channel"s uploaded videos.// Use the videos.insert method to upload new videos and the videos.delete// method to delete previously uploaded videos.Uploadsstring `json:"uploads,omitempty"`// WatchHistory: The ID of the playlist that contains the channel"s watch// history. Use the playlistItems.insert and playlistItems.delete to add or// remove items from that list.WatchHistorystring `json:"watchHistory,omitempty"`// WatchLater: The ID of the playlist that contains the channel"s watch later// playlist. Use the playlistItems.insert and playlistItems.delete to add or// remove items from that list.WatchLaterstring `json:"watchLater,omitempty"`// ForceSendFields is a list of field names (e.g. "Favorites") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Favorites") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ChannelContentDetailsRelatedPlaylists)MarshalJSON¶
func (sChannelContentDetailsRelatedPlaylists) MarshalJSON() ([]byte,error)
typeChannelContentOwnerDetails¶
type ChannelContentOwnerDetails struct {// ContentOwner: The ID of the content owner linked to the channel.ContentOwnerstring `json:"contentOwner,omitempty"`// TimeLinked: The date and time when the channel was linked to the content// owner.TimeLinkedstring `json:"timeLinked,omitempty"`// ForceSendFields is a list of field names (e.g. "ContentOwner") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentOwner") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelContentOwnerDetails: The contentOwnerDetails object encapsulateschannel data that is relevant for YouTube Partners linked with the channel.
func (ChannelContentOwnerDetails)MarshalJSON¶
func (sChannelContentOwnerDetails) MarshalJSON() ([]byte,error)
typeChannelConversionPing¶
type ChannelConversionPing struct {// Context: Defines the context of the ping.//// Possible values:// "subscribe"// "unsubscribe"// "cview"Contextstring `json:"context,omitempty"`// ConversionUrl: The url (without the schema) that the player shall send the// ping to. It's at caller's descretion to decide which schema to use (http vs// https) Example of a returned url: //googleads.g.doubleclick.net/pagead/// viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D// cview%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA&labe=default The caller must append// biscotti authentication (ms param in case of mobile, for example) to this// ping.ConversionUrlstring `json:"conversionUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "Context") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Context") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelConversionPing: Pings that the app shall fire (authenticated bybiscotti cookie). Each ping has a context, in which the app must fire theping, and a url identifying the ping.
func (ChannelConversionPing)MarshalJSON¶
func (sChannelConversionPing) MarshalJSON() ([]byte,error)
typeChannelConversionPings¶
type ChannelConversionPings struct {// Pings: Pings that the app shall fire (authenticated by biscotti cookie).// Each ping has a context, in which the app must fire the ping, and a url// identifying the ping.Pings []*ChannelConversionPing `json:"pings,omitempty"`// ForceSendFields is a list of field names (e.g. "Pings") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Pings") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelConversionPings: The conversionPings object encapsulates informationabout conversion pings that need to be respected by the channel.
func (ChannelConversionPings)MarshalJSON¶
func (sChannelConversionPings) MarshalJSON() ([]byte,error)
typeChannelListResponse¶
type ChannelListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`Items []*Channel `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#channelListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ChannelListResponse)MarshalJSON¶
func (sChannelListResponse) MarshalJSON() ([]byte,error)
typeChannelLocalization¶
type ChannelLocalization struct {// Description: The localized strings for channel's description.Descriptionstring `json:"description,omitempty"`// Title: The localized strings for channel's title.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelLocalization: Channel localization setting
func (ChannelLocalization)MarshalJSON¶
func (sChannelLocalization) MarshalJSON() ([]byte,error)
typeChannelProfileDetails¶
type ChannelProfileDetails struct {// ChannelId: The YouTube channel ID.ChannelIdstring `json:"channelId,omitempty"`// ChannelUrl: The channel's URL.ChannelUrlstring `json:"channelUrl,omitempty"`// DisplayName: The channel's display name.DisplayNamestring `json:"displayName,omitempty"`// ProfileImageUrl: The channels's avatar URL.ProfileImageUrlstring `json:"profileImageUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ChannelProfileDetails)MarshalJSON¶
func (sChannelProfileDetails) MarshalJSON() ([]byte,error)
typeChannelSection¶
type ChannelSection struct {// ContentDetails: The contentDetails object contains details about the channel// section content, such as a list of playlists or channels featured in the// section.ContentDetails *ChannelSectionContentDetails `json:"contentDetails,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the channel section.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#channelSection".Kindstring `json:"kind,omitempty"`// Localizations: Localizations for different languagesLocalizations map[string]ChannelSectionLocalization `json:"localizations,omitempty"`// Snippet: The snippet object contains basic details about the channel// section, such as its type, style and title.Snippet *ChannelSectionSnippet `json:"snippet,omitempty"`// Targeting: The targeting object contains basic targeting settings about the// channel section.Targeting *ChannelSectionTargeting `json:"targeting,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContentDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentDetails") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ChannelSection)MarshalJSON¶
func (sChannelSection) MarshalJSON() ([]byte,error)
typeChannelSectionContentDetails¶
type ChannelSectionContentDetails struct {// Channels: The channel ids for type multiple_channels.Channels []string `json:"channels,omitempty"`// Playlists: The playlist ids for type single_playlist and multiple_playlists.// For singlePlaylist, only one playlistId is allowed.Playlists []string `json:"playlists,omitempty"`// ForceSendFields is a list of field names (e.g. "Channels") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Channels") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelSectionContentDetails: Details about a channelsection, includingplaylists and channels.
func (ChannelSectionContentDetails)MarshalJSON¶
func (sChannelSectionContentDetails) MarshalJSON() ([]byte,error)
typeChannelSectionListResponse¶
type ChannelSectionListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of ChannelSections that match the request criteria.Items []*ChannelSection `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#channelSectionListResponse".Kindstring `json:"kind,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ChannelSectionListResponse)MarshalJSON¶
func (sChannelSectionListResponse) MarshalJSON() ([]byte,error)
typeChannelSectionLocalization¶
type ChannelSectionLocalization struct {// Title: The localized strings for channel section's title.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Title") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Title") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelSectionLocalization: ChannelSection localization setting
func (ChannelSectionLocalization)MarshalJSON¶
func (sChannelSectionLocalization) MarshalJSON() ([]byte,error)
typeChannelSectionSnippet¶
type ChannelSectionSnippet struct {// ChannelId: The ID that YouTube uses to uniquely identify the channel that// published the channel section.ChannelIdstring `json:"channelId,omitempty"`// DefaultLanguage: The language of the channel section's default title and// description.DefaultLanguagestring `json:"defaultLanguage,omitempty"`// Localized: Localized title, read-only.Localized *ChannelSectionLocalization `json:"localized,omitempty"`// Position: The position of the channel section in the channel.Position *int64 `json:"position,omitempty"`// Style: The style of the channel section.//// Possible values:// "channelsectionStyleUnspecified"// "horizontalRow"// "verticalList"Stylestring `json:"style,omitempty"`// Title: The channel section's title for multiple_playlists and// multiple_channels.Titlestring `json:"title,omitempty"`// Type: The type of the channel section.//// Possible values:// "channelsectionTypeUndefined"// "singlePlaylist"// "multiplePlaylists"// "popularUploads"// "recentUploads"// "likes"// "allPlaylists"// "likedPlaylists"// "recentPosts"// "recentActivity"// "liveEvents"// "upcomingEvents"// "completedEvents"// "multipleChannels"// "postedVideos"// "postedPlaylists"// "subscriptions"Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelSectionSnippet: Basic details about a channel section, includingtitle, style and position.
func (ChannelSectionSnippet)MarshalJSON¶
func (sChannelSectionSnippet) MarshalJSON() ([]byte,error)
typeChannelSectionTargeting¶
type ChannelSectionTargeting struct {// Countries: The country the channel section is targeting.Countries []string `json:"countries,omitempty"`// Languages: The language the channel section is targeting.Languages []string `json:"languages,omitempty"`// Regions: The region the channel section is targeting.Regions []string `json:"regions,omitempty"`// ForceSendFields is a list of field names (e.g. "Countries") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Countries") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelSectionTargeting: ChannelSection targeting setting.
func (ChannelSectionTargeting)MarshalJSON¶
func (sChannelSectionTargeting) MarshalJSON() ([]byte,error)
typeChannelSectionsDeleteCall¶
type ChannelSectionsDeleteCall struct {// contains filtered or unexported fields}func (*ChannelSectionsDeleteCall)Context¶
func (c *ChannelSectionsDeleteCall) Context(ctxcontext.Context) *ChannelSectionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ChannelSectionsDeleteCall)Do¶
func (c *ChannelSectionsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.channelSections.delete" call.
func (*ChannelSectionsDeleteCall)Fields¶
func (c *ChannelSectionsDeleteCall) Fields(s ...googleapi.Field) *ChannelSectionsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ChannelSectionsDeleteCall)Header¶
func (c *ChannelSectionsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ChannelSectionsDeleteCall)OnBehalfOfContentOwner¶
func (c *ChannelSectionsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *ChannelSectionsDeleteCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typeChannelSectionsInsertCall¶
type ChannelSectionsInsertCall struct {// contains filtered or unexported fields}func (*ChannelSectionsInsertCall)Context¶
func (c *ChannelSectionsInsertCall) Context(ctxcontext.Context) *ChannelSectionsInsertCall
Context sets the context to be used in this call's Do method.
func (*ChannelSectionsInsertCall)Do¶
func (c *ChannelSectionsInsertCall) Do(opts ...googleapi.CallOption) (*ChannelSection,error)
Do executes the "youtube.channelSections.insert" call.Any non-2xx status code is an error. Response headers are in either*ChannelSection.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ChannelSectionsInsertCall)Fields¶
func (c *ChannelSectionsInsertCall) Fields(s ...googleapi.Field) *ChannelSectionsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ChannelSectionsInsertCall)Header¶
func (c *ChannelSectionsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ChannelSectionsInsertCall)OnBehalfOfContentOwner¶
func (c *ChannelSectionsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *ChannelSectionsInsertCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*ChannelSectionsInsertCall)OnBehalfOfContentOwnerChannel¶
func (c *ChannelSectionsInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *ChannelSectionsInsertCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
typeChannelSectionsListCall¶
type ChannelSectionsListCall struct {// contains filtered or unexported fields}func (*ChannelSectionsListCall)ChannelId¶
func (c *ChannelSectionsListCall) ChannelId(channelIdstring) *ChannelSectionsListCall
ChannelId sets the optional parameter "channelId": Return theChannelSections owned by the specified channel ID.
func (*ChannelSectionsListCall)Context¶
func (c *ChannelSectionsListCall) Context(ctxcontext.Context) *ChannelSectionsListCall
Context sets the context to be used in this call's Do method.
func (*ChannelSectionsListCall)Do¶
func (c *ChannelSectionsListCall) Do(opts ...googleapi.CallOption) (*ChannelSectionListResponse,error)
Do executes the "youtube.channelSections.list" call.Any non-2xx status code is an error. Response headers are in either*ChannelSectionListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ChannelSectionsListCall)Fields¶
func (c *ChannelSectionsListCall) Fields(s ...googleapi.Field) *ChannelSectionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ChannelSectionsListCall)Header¶
func (c *ChannelSectionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ChannelSectionsListCall)Hl¶
func (c *ChannelSectionsListCall) Hl(hlstring) *ChannelSectionsListCall
Hl sets the optional parameter "hl": Return content in specified language
func (*ChannelSectionsListCall)Id¶
func (c *ChannelSectionsListCall) Id(id ...string) *ChannelSectionsListCall
Id sets the optional parameter "id": Return the ChannelSections with thegiven IDs for Stubby or Apiary.
func (*ChannelSectionsListCall)IfNoneMatch¶
func (c *ChannelSectionsListCall) IfNoneMatch(entityTagstring) *ChannelSectionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ChannelSectionsListCall)Mine¶
func (c *ChannelSectionsListCall) Mine(minebool) *ChannelSectionsListCall
Mine sets the optional parameter "mine": Return the ChannelSections owned bythe authenticated user.
func (*ChannelSectionsListCall)OnBehalfOfContentOwner¶
func (c *ChannelSectionsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *ChannelSectionsListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typeChannelSectionsService¶
type ChannelSectionsService struct {// contains filtered or unexported fields}funcNewChannelSectionsService¶
func NewChannelSectionsService(s *Service) *ChannelSectionsService
func (*ChannelSectionsService)Delete¶
func (r *ChannelSectionsService) Delete(idstring) *ChannelSectionsDeleteCall
Delete: Deletes a resource.
- id: .
func (*ChannelSectionsService)Insert¶
func (r *ChannelSectionsService) Insert(part []string, channelsection *ChannelSection) *ChannelSectionsInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. The part names that you caninclude in the parameter value are snippet and contentDetails.
func (*ChannelSectionsService)List¶
func (r *ChannelSectionsService) List(part []string) *ChannelSectionsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or morechannelSection resource properties that the API response will include. Thepart names that you can include in the parameter value are id, snippet,and contentDetails. If the parameter identifies a property that containschild properties, the child properties will be included in the response.For example, in a channelSection resource, the snippet property containsother properties, such as a display title for the channelSection. If youset *part=snippet*, the API response will also contain all of those nestedproperties.
func (*ChannelSectionsService)Update¶
func (r *ChannelSectionsService) Update(part []string, channelsection *ChannelSection) *ChannelSectionsUpdateCall
Update: Updates an existing resource.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. The part names that you caninclude in the parameter value are snippet and contentDetails.
typeChannelSectionsUpdateCall¶
type ChannelSectionsUpdateCall struct {// contains filtered or unexported fields}func (*ChannelSectionsUpdateCall)Context¶
func (c *ChannelSectionsUpdateCall) Context(ctxcontext.Context) *ChannelSectionsUpdateCall
Context sets the context to be used in this call's Do method.
func (*ChannelSectionsUpdateCall)Do¶
func (c *ChannelSectionsUpdateCall) Do(opts ...googleapi.CallOption) (*ChannelSection,error)
Do executes the "youtube.channelSections.update" call.Any non-2xx status code is an error. Response headers are in either*ChannelSection.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ChannelSectionsUpdateCall)Fields¶
func (c *ChannelSectionsUpdateCall) Fields(s ...googleapi.Field) *ChannelSectionsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ChannelSectionsUpdateCall)Header¶
func (c *ChannelSectionsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ChannelSectionsUpdateCall)OnBehalfOfContentOwner¶
func (c *ChannelSectionsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *ChannelSectionsUpdateCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typeChannelSettings¶
type ChannelSettings struct {// Country: The country of the channel.Countrystring `json:"country,omitempty"`DefaultLanguagestring `json:"defaultLanguage,omitempty"`// DefaultTab: Which content tab users should see when viewing the channel.DefaultTabstring `json:"defaultTab,omitempty"`// Description: Specifies the channel description.Descriptionstring `json:"description,omitempty"`// FeaturedChannelsTitle: Title for the featured channels tab.FeaturedChannelsTitlestring `json:"featuredChannelsTitle,omitempty"`// FeaturedChannelsUrls: The list of featured channels.FeaturedChannelsUrls []string `json:"featuredChannelsUrls,omitempty"`// Keywords: Lists keywords associated with the channel, comma-separated.Keywordsstring `json:"keywords,omitempty"`// ModerateComments: Whether user-submitted comments left on the channel page// need to be approved by the channel owner to be publicly visible.ModerateCommentsbool `json:"moderateComments,omitempty"`// ProfileColor: A prominent color that can be rendered on this channel page.ProfileColorstring `json:"profileColor,omitempty"`// ShowBrowseView: Whether the tab to browse the videos should be displayed.ShowBrowseViewbool `json:"showBrowseView,omitempty"`// ShowRelatedChannels: Whether related channels should be proposed.ShowRelatedChannelsbool `json:"showRelatedChannels,omitempty"`// Title: Specifies the channel title.Titlestring `json:"title,omitempty"`// TrackingAnalyticsAccountId: The ID for a Google Analytics account to track// and measure traffic to the channels.TrackingAnalyticsAccountIdstring `json:"trackingAnalyticsAccountId,omitempty"`// UnsubscribedTrailer: The trailer of the channel, for users that are not// subscribers.UnsubscribedTrailerstring `json:"unsubscribedTrailer,omitempty"`// ForceSendFields is a list of field names (e.g. "Country") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Country") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelSettings: Branding properties for the channel view.
func (ChannelSettings)MarshalJSON¶
func (sChannelSettings) MarshalJSON() ([]byte,error)
typeChannelSnippet¶
type ChannelSnippet struct {// Country: The country of the channel.Countrystring `json:"country,omitempty"`// CustomUrl: The custom url of the channel.CustomUrlstring `json:"customUrl,omitempty"`// DefaultLanguage: The language of the channel's default title and// description.DefaultLanguagestring `json:"defaultLanguage,omitempty"`// Description: The description of the channel.Descriptionstring `json:"description,omitempty"`// Localized: Localized title and description, read-only.Localized *ChannelLocalization `json:"localized,omitempty"`// PublishedAt: The date and time that the channel was created.PublishedAtstring `json:"publishedAt,omitempty"`// Thumbnails: A map of thumbnail images associated with the channel. For each// object in the map, the key is the name of the thumbnail image, and the value// is an object that contains other information about the thumbnail. When// displaying thumbnails in your application, make sure that your code uses the// image URLs exactly as they are returned in API responses. For example, your// application should not use the http domain instead of the https domain in a// URL returned in an API response. Beginning in July 2018, channel thumbnail// URLs will only be available in the https domain, which is how the URLs// appear in API responses. After that time, you might see broken images in// your application if it tries to load YouTube images from the http domain.// Thumbnail images might be empty for newly created channels and might take up// to one day to populate.Thumbnails *ThumbnailDetails `json:"thumbnails,omitempty"`// Title: The channel's title.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Country") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Country") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelSnippet: Basic details about a channel, including title, descriptionand thumbnails.
func (ChannelSnippet)MarshalJSON¶
func (sChannelSnippet) MarshalJSON() ([]byte,error)
typeChannelStatistics¶
type ChannelStatistics struct {// CommentCount: The number of comments for the channel.CommentCountuint64 `json:"commentCount,omitempty,string"`// HiddenSubscriberCount: Whether or not the number of subscribers is shown for// this user.HiddenSubscriberCountbool `json:"hiddenSubscriberCount,omitempty"`// SubscriberCount: The number of subscribers that the channel has.SubscriberCountuint64 `json:"subscriberCount,omitempty,string"`// VideoCount: The number of videos uploaded to the channel.VideoCountuint64 `json:"videoCount,omitempty,string"`// ViewCount: The number of times the channel has been viewed.ViewCountuint64 `json:"viewCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CommentCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CommentCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelStatistics: Statistics about a channel: number of subscribers, numberof videos in the channel, etc.
func (ChannelStatistics)MarshalJSON¶
func (sChannelStatistics) MarshalJSON() ([]byte,error)
typeChannelStatus¶
type ChannelStatus struct {// IsChannelMonetizationEnabled: Whether the channel is considered ypp// monetization enabled. See go/yppornot for more details.IsChannelMonetizationEnabledbool `json:"isChannelMonetizationEnabled,omitempty"`// IsLinked: If true, then the user is linked to either a YouTube username or// G+ account. Otherwise, the user doesn't have a public YouTube identity.IsLinkedbool `json:"isLinked,omitempty"`// LongUploadsStatus: The long uploads status of this channel. See//https://support.google.com/youtube/answer/71673 for more information.//// Possible values:// "longUploadsUnspecified"// "allowed"// "eligible"// "disallowed"LongUploadsStatusstring `json:"longUploadsStatus,omitempty"`MadeForKidsbool `json:"madeForKids,omitempty"`// PrivacyStatus: Privacy status of the channel.//// Possible values:// "public"// "unlisted"// "private"PrivacyStatusstring `json:"privacyStatus,omitempty"`SelfDeclaredMadeForKidsbool `json:"selfDeclaredMadeForKids,omitempty"`// ForceSendFields is a list of field names (e.g.// "IsChannelMonetizationEnabled") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IsChannelMonetizationEnabled") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelStatus: JSON template for the status part of a channel.
func (ChannelStatus)MarshalJSON¶
func (sChannelStatus) MarshalJSON() ([]byte,error)
typeChannelToStoreLinkDetails¶added inv0.26.0
type ChannelToStoreLinkDetails struct {// BillingDetails: Information specific to billing (read-only).BillingDetails *ChannelToStoreLinkDetailsBillingDetails `json:"billingDetails,omitempty"`// MerchantAffiliateProgramDetails: Information specific to merchant affiliate// program (read-only).MerchantAffiliateProgramDetails *ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails `json:"merchantAffiliateProgramDetails,omitempty"`// MerchantId: Google Merchant Center id of the store.MerchantIduint64 `json:"merchantId,omitempty,string"`// StoreName: Name of the store.StoreNamestring `json:"storeName,omitempty"`// StoreUrl: Landing page of the store.StoreUrlstring `json:"storeUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "BillingDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BillingDetails") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelToStoreLinkDetails: Information specific to a store on amerchandising platform linked to a YouTube channel.
func (ChannelToStoreLinkDetails)MarshalJSON¶added inv0.26.0
func (sChannelToStoreLinkDetails) MarshalJSON() ([]byte,error)
typeChannelToStoreLinkDetailsBillingDetails¶added inv0.166.0
type ChannelToStoreLinkDetailsBillingDetails struct {// BillingStatus: The current billing profile status.//// Possible values:// "billingStatusUnspecified"// "billingStatusPending"// "billingStatusActive"// "billingStatusInactive"BillingStatusstring `json:"billingStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "BillingStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BillingStatus") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelToStoreLinkDetailsBillingDetails: Information specific to billing.
func (ChannelToStoreLinkDetailsBillingDetails)MarshalJSON¶added inv0.166.0
func (sChannelToStoreLinkDetailsBillingDetails) MarshalJSON() ([]byte,error)
typeChannelToStoreLinkDetailsMerchantAffiliateProgramDetails¶added inv0.208.0
type ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails struct {// Status: The current merchant affiliate program status.//// Possible values:// "merchantAffiliateProgramStatusUnspecified" - Unspecified status.// "merchantAffiliateProgramStatusEligible" - Merchant is eligible for the// merchant affiliate program.// "merchantAffiliateProgramStatusActive" - Merchant affiliate program is// active.// "merchantAffiliateProgramStatusPaused" - Merchant affiliate program is// paused.Statusstring `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "Status") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Status") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails: Informationspecific to merchant affiliate program.
func (ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails)MarshalJSON¶added inv0.208.0
func (sChannelToStoreLinkDetailsMerchantAffiliateProgramDetails) MarshalJSON() ([]byte,error)
typeChannelTopicDetails¶
type ChannelTopicDetails struct {// TopicCategories: A list of Wikipedia URLs that describe the channel's// content.TopicCategories []string `json:"topicCategories,omitempty"`// TopicIds: A list of Freebase topic IDs associated with the channel. You can// retrieve information about each topic using the Freebase Topic API.TopicIds []string `json:"topicIds,omitempty"`// ForceSendFields is a list of field names (e.g. "TopicCategories") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TopicCategories") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ChannelTopicDetails: Freebase topic information related to the channel.
func (ChannelTopicDetails)MarshalJSON¶
func (sChannelTopicDetails) MarshalJSON() ([]byte,error)
typeChannelsListCall¶
type ChannelsListCall struct {// contains filtered or unexported fields}func (*ChannelsListCall)CategoryId¶
func (c *ChannelsListCall) CategoryId(categoryIdstring) *ChannelsListCall
CategoryId sets the optional parameter "categoryId": Return the channelswithin the specified guide category ID.
func (*ChannelsListCall)Context¶
func (c *ChannelsListCall) Context(ctxcontext.Context) *ChannelsListCall
Context sets the context to be used in this call's Do method.
func (*ChannelsListCall)Do¶
func (c *ChannelsListCall) Do(opts ...googleapi.CallOption) (*ChannelListResponse,error)
Do executes the "youtube.channels.list" call.Any non-2xx status code is an error. Response headers are in either*ChannelListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ChannelsListCall)Fields¶
func (c *ChannelsListCall) Fields(s ...googleapi.Field) *ChannelsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ChannelsListCall)ForHandle¶added inv0.147.0
func (c *ChannelsListCall) ForHandle(forHandlestring) *ChannelsListCall
ForHandle sets the optional parameter "forHandle": Return the channelassociated with a YouTube handle.
func (*ChannelsListCall)ForUsername¶
func (c *ChannelsListCall) ForUsername(forUsernamestring) *ChannelsListCall
ForUsername sets the optional parameter "forUsername": Return the channelassociated with a YouTube username.
func (*ChannelsListCall)Header¶
func (c *ChannelsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ChannelsListCall)Hl¶
func (c *ChannelsListCall) Hl(hlstring) *ChannelsListCall
Hl sets the optional parameter "hl": Stands for "host language". Specifiesthe localization language of the metadata to be filled intosnippet.localized. The field is filled with the default metadata if there isno localization in the specified language. The parameter value must be alanguage code included in the list returned by the i18nLanguages.list method(e.g. en_US, es_MX).
func (*ChannelsListCall)Id¶
func (c *ChannelsListCall) Id(id ...string) *ChannelsListCall
Id sets the optional parameter "id": Return the channels with the specifiedIDs.
func (*ChannelsListCall)IfNoneMatch¶
func (c *ChannelsListCall) IfNoneMatch(entityTagstring) *ChannelsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ChannelsListCall)ManagedByMe¶
func (c *ChannelsListCall) ManagedByMe(managedByMebool) *ChannelsListCall
ManagedByMe sets the optional parameter "managedByMe": Return the channelsmanaged by the authenticated user.
func (*ChannelsListCall)MaxResults¶
func (c *ChannelsListCall) MaxResults(maxResultsint64) *ChannelsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*ChannelsListCall)Mine¶
func (c *ChannelsListCall) Mine(minebool) *ChannelsListCall
Mine sets the optional parameter "mine": Return the ids of channels owned bythe authenticated user.
func (*ChannelsListCall)MySubscribers¶
func (c *ChannelsListCall) MySubscribers(mySubscribersbool) *ChannelsListCall
MySubscribers sets the optional parameter "mySubscribers": Return thechannels subscribed to the authenticated user
func (*ChannelsListCall)OnBehalfOfContentOwner¶
func (c *ChannelsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *ChannelsListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*ChannelsListCall)PageToken¶
func (c *ChannelsListCall) PageToken(pageTokenstring) *ChannelsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*ChannelsListCall)Pages¶
func (c *ChannelsListCall) Pages(ctxcontext.Context, f func(*ChannelListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeChannelsService¶
type ChannelsService struct {// contains filtered or unexported fields}funcNewChannelsService¶
func NewChannelsService(s *Service) *ChannelsService
func (*ChannelsService)List¶
func (r *ChannelsService) List(part []string) *ChannelsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or morechannel resource properties that the API response will include. If theparameter identifies a property that contains child properties, the childproperties will be included in the response. For example, in a channelresource, the contentDetails property contains other properties, such asthe uploads properties. As such, if you set *part=contentDetails*, the APIresponse will also contain all of those nested properties.
func (*ChannelsService)Update¶
func (r *ChannelsService) Update(part []string, channel *Channel) *ChannelsUpdateCall
Update: Updates an existing resource.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. The API currently onlyallows the parameter value to be set to either brandingSettings orinvideoPromotion. (You cannot update both of those parts with a singlerequest.) Note that this method overrides the existing values for all ofthe mutable properties that are contained in any parts that the parametervalue specifies.
typeChannelsUpdateCall¶
type ChannelsUpdateCall struct {// contains filtered or unexported fields}func (*ChannelsUpdateCall)Context¶
func (c *ChannelsUpdateCall) Context(ctxcontext.Context) *ChannelsUpdateCall
Context sets the context to be used in this call's Do method.
func (*ChannelsUpdateCall)Do¶
func (c *ChannelsUpdateCall) Do(opts ...googleapi.CallOption) (*Channel,error)
Do executes the "youtube.channels.update" call.Any non-2xx status code is an error. Response headers are in either*Channel.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ChannelsUpdateCall)Fields¶
func (c *ChannelsUpdateCall) Fields(s ...googleapi.Field) *ChannelsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ChannelsUpdateCall)Header¶
func (c *ChannelsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ChannelsUpdateCall)OnBehalfOfContentOwner¶
func (c *ChannelsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *ChannelsUpdateCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":The *onBehalfOfContentOwner* parameter indicates that the authenticated useris acting on behalf of the content owner specified in the parameter value.This parameter is intended for YouTube content partners that own and managemany different YouTube channels. It allows content owners to authenticateonce and get access to all their video and channel data, without having toprovide authentication credentials for each individual channel. The actualCMS account that the user authenticates with needs to be linked to thespecified YouTube content owner.
typeComment¶
type Comment struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the comment.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#comment".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the comment.Snippet *CommentSnippet `json:"snippet,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Comment: A *comment* represents a single YouTube comment.
func (Comment)MarshalJSON¶
typeCommentListResponse¶
type CommentListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of comments that match the request criteria.Items []*Comment `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#commentListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (CommentListResponse)MarshalJSON¶
func (sCommentListResponse) MarshalJSON() ([]byte,error)
typeCommentSnippet¶
type CommentSnippet struct {AuthorChannelId *CommentSnippetAuthorChannelId `json:"authorChannelId,omitempty"`// AuthorChannelUrl: Link to the author's YouTube channel, if any.AuthorChannelUrlstring `json:"authorChannelUrl,omitempty"`// AuthorDisplayName: The name of the user who posted the comment.AuthorDisplayNamestring `json:"authorDisplayName,omitempty"`// AuthorProfileImageUrl: The URL for the avatar of the user who posted the// comment.AuthorProfileImageUrlstring `json:"authorProfileImageUrl,omitempty"`// CanRate: Whether the current viewer can rate this comment.CanRatebool `json:"canRate,omitempty"`// ChannelId: The id of the corresponding YouTube channel. In case of a channel// comment this is the channel the comment refers to. In case of a video or// post comment it's the video/post's channel.ChannelIdstring `json:"channelId,omitempty"`// LikeCount: The total number of likes this comment has received.LikeCountint64 `json:"likeCount,omitempty"`// ModerationStatus: The comment's moderation status. Will not be set if the// comments were requested through the id filter.//// Possible values:// "published" - The comment is available for public display.// "heldForReview" - The comment is awaiting review by a moderator.// "likelySpam"// "rejected" - The comment is unfit for display.ModerationStatusstring `json:"moderationStatus,omitempty"`// ParentId: The unique id of the top-level comment, only set for replies.ParentIdstring `json:"parentId,omitempty"`// PostId: The ID of the post the comment refers to, if any.PostIdstring `json:"postId,omitempty"`// PublishedAt: The date and time when the comment was originally published.PublishedAtstring `json:"publishedAt,omitempty"`// TextDisplay: The comment's text. The format is either plain text or HTML// dependent on what has been requested. Even the plain text representation may// differ from the text originally posted in that it may replace video links// with video titles etc.TextDisplaystring `json:"textDisplay,omitempty"`// TextOriginal: The comment's original raw text as initially posted or last// updated. The original text will only be returned if it is accessible to the// viewer, which is only guaranteed if the viewer is the comment's author.TextOriginalstring `json:"textOriginal,omitempty"`// UpdatedAt: The date and time when the comment was last updated.UpdatedAtstring `json:"updatedAt,omitempty"`// VideoId: The ID of the video the comment refers to, if any.VideoIdstring `json:"videoId,omitempty"`// ViewerRating: The rating the viewer has given to this comment. For the time// being this will never return RATE_TYPE_DISLIKE and instead return// RATE_TYPE_NONE. This may change in the future.//// Possible values:// "none"// "like" - The entity is liked.// "dislike" - The entity is disliked.ViewerRatingstring `json:"viewerRating,omitempty"`// ForceSendFields is a list of field names (e.g. "AuthorChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuthorChannelId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CommentSnippet: Basic details about a comment, such as its author and text.
func (CommentSnippet)MarshalJSON¶
func (sCommentSnippet) MarshalJSON() ([]byte,error)
typeCommentSnippetAuthorChannelId¶added inv0.27.0
type CommentSnippetAuthorChannelId struct {// Value: The id of the author's YouTube channel.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Value") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Value") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CommentSnippetAuthorChannelId: Contains the id of the author's YouTubechannel, if any.
func (CommentSnippetAuthorChannelId)MarshalJSON¶added inv0.27.0
func (sCommentSnippetAuthorChannelId) MarshalJSON() ([]byte,error)
typeCommentThread¶
type CommentThread struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the comment thread.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#commentThread".Kindstring `json:"kind,omitempty"`// Replies: The replies object contains a limited number of replies (if any) to// the top level comment found in the snippet.Replies *CommentThreadReplies `json:"replies,omitempty"`// Snippet: The snippet object contains basic details about the comment thread// and also the top level comment.Snippet *CommentThreadSnippet `json:"snippet,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CommentThread: A *comment thread* represents information that applies to atop level comment and all its replies. It can also include the top levelcomment itself and some of the replies.
func (CommentThread)MarshalJSON¶
func (sCommentThread) MarshalJSON() ([]byte,error)
typeCommentThreadListResponse¶
type CommentThreadListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of comment threads that match the request criteria.Items []*CommentThread `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#commentThreadListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (CommentThreadListResponse)MarshalJSON¶
func (sCommentThreadListResponse) MarshalJSON() ([]byte,error)
typeCommentThreadReplies¶
type CommentThreadReplies struct {// Comments: A limited number of replies. Unless the number of replies returned// equals total_reply_count in the snippet the returned replies are only a// subset of the total number of replies.Comments []*Comment `json:"comments,omitempty"`// ForceSendFields is a list of field names (e.g. "Comments") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Comments") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CommentThreadReplies: Comments written in (direct or indirect) reply to thetop level comment.
func (CommentThreadReplies)MarshalJSON¶
func (sCommentThreadReplies) MarshalJSON() ([]byte,error)
typeCommentThreadSnippet¶
type CommentThreadSnippet struct {// CanReply: Whether the current viewer of the thread can reply to it. This is// viewer specific - other viewers may see a different value for this field.CanReplybool `json:"canReply,omitempty"`// ChannelId: The YouTube channel the comments in the thread refer to or the// channel with the video the comments refer to. If neither video_id nor// post_id is set the comments refer to the channel itself.ChannelIdstring `json:"channelId,omitempty"`// IsPublic: Whether the thread (and therefore all its comments) is visible to// all YouTube users.IsPublicbool `json:"isPublic,omitempty"`// PostId: The ID of the post the comments refer to, if any.PostIdstring `json:"postId,omitempty"`// TopLevelComment: The top level comment of this thread.TopLevelComment *Comment `json:"topLevelComment,omitempty"`// TotalReplyCount: The total number of replies (not including the top level// comment).TotalReplyCountint64 `json:"totalReplyCount,omitempty"`// VideoId: The ID of the video the comments refer to, if any.VideoIdstring `json:"videoId,omitempty"`// ForceSendFields is a list of field names (e.g. "CanReply") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanReply") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CommentThreadSnippet: Basic details about a comment thread.
func (CommentThreadSnippet)MarshalJSON¶
func (sCommentThreadSnippet) MarshalJSON() ([]byte,error)
typeCommentThreadsInsertCall¶
type CommentThreadsInsertCall struct {// contains filtered or unexported fields}func (*CommentThreadsInsertCall)Context¶
func (c *CommentThreadsInsertCall) Context(ctxcontext.Context) *CommentThreadsInsertCall
Context sets the context to be used in this call's Do method.
func (*CommentThreadsInsertCall)Do¶
func (c *CommentThreadsInsertCall) Do(opts ...googleapi.CallOption) (*CommentThread,error)
Do executes the "youtube.commentThreads.insert" call.Any non-2xx status code is an error. Response headers are in either*CommentThread.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*CommentThreadsInsertCall)Fields¶
func (c *CommentThreadsInsertCall) Fields(s ...googleapi.Field) *CommentThreadsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CommentThreadsInsertCall)Header¶
func (c *CommentThreadsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeCommentThreadsListCall¶
type CommentThreadsListCall struct {// contains filtered or unexported fields}func (*CommentThreadsListCall)AllThreadsRelatedToChannelId¶
func (c *CommentThreadsListCall) AllThreadsRelatedToChannelId(allThreadsRelatedToChannelIdstring) *CommentThreadsListCall
AllThreadsRelatedToChannelId sets the optional parameter"allThreadsRelatedToChannelId": Returns the comment threads of all videos ofthe channel and the channel comments as well.
func (*CommentThreadsListCall)ChannelId¶
func (c *CommentThreadsListCall) ChannelId(channelIdstring) *CommentThreadsListCall
ChannelId sets the optional parameter "channelId": Returns the commentthreads for all the channel comments (ie does not include comments left onvideos).
func (*CommentThreadsListCall)Context¶
func (c *CommentThreadsListCall) Context(ctxcontext.Context) *CommentThreadsListCall
Context sets the context to be used in this call's Do method.
func (*CommentThreadsListCall)Do¶
func (c *CommentThreadsListCall) Do(opts ...googleapi.CallOption) (*CommentThreadListResponse,error)
Do executes the "youtube.commentThreads.list" call.Any non-2xx status code is an error. Response headers are in either*CommentThreadListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*CommentThreadsListCall)Fields¶
func (c *CommentThreadsListCall) Fields(s ...googleapi.Field) *CommentThreadsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CommentThreadsListCall)Header¶
func (c *CommentThreadsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*CommentThreadsListCall)Id¶
func (c *CommentThreadsListCall) Id(id ...string) *CommentThreadsListCall
Id sets the optional parameter "id": Returns the comment threads with thegiven IDs for Stubby or Apiary.
func (*CommentThreadsListCall)IfNoneMatch¶
func (c *CommentThreadsListCall) IfNoneMatch(entityTagstring) *CommentThreadsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*CommentThreadsListCall)MaxResults¶
func (c *CommentThreadsListCall) MaxResults(maxResultsint64) *CommentThreadsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*CommentThreadsListCall)ModerationStatus¶
func (c *CommentThreadsListCall) ModerationStatus(moderationStatusstring) *CommentThreadsListCall
ModerationStatus sets the optional parameter "moderationStatus": Limits thereturned comment threads to those with the specified moderation status. Notcompatible with the 'id' filter. Valid values: published, heldForReview,likelySpam.
Possible values:
"published" (default) - The comment is available for public display."heldForReview" - The comment is awaiting review by a moderator."likelySpam""rejected" - The comment is unfit for display.
func (*CommentThreadsListCall)Order¶
func (c *CommentThreadsListCall) Order(orderstring) *CommentThreadsListCall
Order sets the optional parameter "order":
Possible values:
"orderUnspecified""time" (default) - Order by time."relevance" - Order by relevance.
func (*CommentThreadsListCall)PageToken¶
func (c *CommentThreadsListCall) PageToken(pageTokenstring) *CommentThreadsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*CommentThreadsListCall)Pages¶
func (c *CommentThreadsListCall) Pages(ctxcontext.Context, f func(*CommentThreadListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*CommentThreadsListCall)PostId¶added inv0.229.0
func (c *CommentThreadsListCall) PostId(postIdstring) *CommentThreadsListCall
PostId sets the optional parameter "postId": Returns the comment threads ofthe specified post.
func (*CommentThreadsListCall)SearchTerms¶
func (c *CommentThreadsListCall) SearchTerms(searchTermsstring) *CommentThreadsListCall
SearchTerms sets the optional parameter "searchTerms": Limits the returnedcomment threads to those matching the specified key words. Not compatiblewith the 'id' filter.
func (*CommentThreadsListCall)TextFormat¶
func (c *CommentThreadsListCall) TextFormat(textFormatstring) *CommentThreadsListCall
TextFormat sets the optional parameter "textFormat": The requested textformat for the returned comments.
Possible values:
"textFormatUnspecified""html" (default) - Returns the comments in HTML format. This is the
default value.
"plainText" - Returns the comments in plain text format.
func (*CommentThreadsListCall)VideoId¶
func (c *CommentThreadsListCall) VideoId(videoIdstring) *CommentThreadsListCall
VideoId sets the optional parameter "videoId": Returns the comment threadsof the specified video.
typeCommentThreadsService¶
type CommentThreadsService struct {// contains filtered or unexported fields}funcNewCommentThreadsService¶
func NewCommentThreadsService(s *Service) *CommentThreadsService
func (*CommentThreadsService)Insert¶
func (r *CommentThreadsService) Insert(part []string, commentthread *CommentThread) *CommentThreadsInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter identifies the properties that the API responsewill include. Set the parameter value to snippet. The snippet part has aquota cost of 2 units.
func (*CommentThreadsService)List¶
func (r *CommentThreadsService) List(part []string) *CommentThreadsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or morecommentThread resource properties that the API response will include.
typeCommentsDeleteCall¶
type CommentsDeleteCall struct {// contains filtered or unexported fields}func (*CommentsDeleteCall)Context¶
func (c *CommentsDeleteCall) Context(ctxcontext.Context) *CommentsDeleteCall
Context sets the context to be used in this call's Do method.
func (*CommentsDeleteCall)Do¶
func (c *CommentsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.comments.delete" call.
func (*CommentsDeleteCall)Fields¶
func (c *CommentsDeleteCall) Fields(s ...googleapi.Field) *CommentsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CommentsDeleteCall)Header¶
func (c *CommentsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeCommentsInsertCall¶
type CommentsInsertCall struct {// contains filtered or unexported fields}func (*CommentsInsertCall)Context¶
func (c *CommentsInsertCall) Context(ctxcontext.Context) *CommentsInsertCall
Context sets the context to be used in this call's Do method.
func (*CommentsInsertCall)Do¶
func (c *CommentsInsertCall) Do(opts ...googleapi.CallOption) (*Comment,error)
Do executes the "youtube.comments.insert" call.Any non-2xx status code is an error. Response headers are in either*Comment.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*CommentsInsertCall)Fields¶
func (c *CommentsInsertCall) Fields(s ...googleapi.Field) *CommentsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CommentsInsertCall)Header¶
func (c *CommentsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeCommentsListCall¶
type CommentsListCall struct {// contains filtered or unexported fields}func (*CommentsListCall)Context¶
func (c *CommentsListCall) Context(ctxcontext.Context) *CommentsListCall
Context sets the context to be used in this call's Do method.
func (*CommentsListCall)Do¶
func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentListResponse,error)
Do executes the "youtube.comments.list" call.Any non-2xx status code is an error. Response headers are in either*CommentListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*CommentsListCall)Fields¶
func (c *CommentsListCall) Fields(s ...googleapi.Field) *CommentsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CommentsListCall)Header¶
func (c *CommentsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*CommentsListCall)Id¶
func (c *CommentsListCall) Id(id ...string) *CommentsListCall
Id sets the optional parameter "id": Returns the comments with the given IDsfor One Platform.
func (*CommentsListCall)IfNoneMatch¶
func (c *CommentsListCall) IfNoneMatch(entityTagstring) *CommentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*CommentsListCall)MaxResults¶
func (c *CommentsListCall) MaxResults(maxResultsint64) *CommentsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*CommentsListCall)PageToken¶
func (c *CommentsListCall) PageToken(pageTokenstring) *CommentsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*CommentsListCall)Pages¶
func (c *CommentsListCall) Pages(ctxcontext.Context, f func(*CommentListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*CommentsListCall)ParentId¶
func (c *CommentsListCall) ParentId(parentIdstring) *CommentsListCall
ParentId sets the optional parameter "parentId": Returns replies to thespecified comment. Note, currently YouTube features only one level ofreplies (ie replies to top level comments). However replies to replies maybe supported in the future.
func (*CommentsListCall)TextFormat¶
func (c *CommentsListCall) TextFormat(textFormatstring) *CommentsListCall
TextFormat sets the optional parameter "textFormat": The requested textformat for the returned comments.
Possible values:
"textFormatUnspecified""html" (default) - Returns the comments in HTML format. This is the
default value.
"plainText" - Returns the comments in plain text format.
typeCommentsMarkAsSpamCall¶
type CommentsMarkAsSpamCall struct {// contains filtered or unexported fields}func (*CommentsMarkAsSpamCall)Context¶
func (c *CommentsMarkAsSpamCall) Context(ctxcontext.Context) *CommentsMarkAsSpamCall
Context sets the context to be used in this call's Do method.
func (*CommentsMarkAsSpamCall)Do¶
func (c *CommentsMarkAsSpamCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.comments.markAsSpam" call.
func (*CommentsMarkAsSpamCall)Fields¶
func (c *CommentsMarkAsSpamCall) Fields(s ...googleapi.Field) *CommentsMarkAsSpamCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CommentsMarkAsSpamCall)Header¶
func (c *CommentsMarkAsSpamCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeCommentsService¶
type CommentsService struct {// contains filtered or unexported fields}funcNewCommentsService¶
func NewCommentsService(s *Service) *CommentsService
func (*CommentsService)Delete¶
func (r *CommentsService) Delete(idstring) *CommentsDeleteCall
Delete: Deletes a resource.
- id: .
func (*CommentsService)Insert¶
func (r *CommentsService) Insert(part []string, comment *Comment) *CommentsInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter identifies the properties that the API responsewill include. Set the parameter value to snippet. The snippet part has aquota cost of 2 units.
func (*CommentsService)List¶
func (r *CommentsService) List(part []string) *CommentsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or morecomment resource properties that the API response will include.
func (*CommentsService)MarkAsSpam¶
func (r *CommentsService) MarkAsSpam(id []string) *CommentsMarkAsSpamCall
MarkAsSpam: Expresses the caller's opinion that one or more comments shouldbe flagged as spam.
- id: Flags the comments with the given IDs as spam in the caller's opinion.
func (*CommentsService)SetModerationStatus¶
func (r *CommentsService) SetModerationStatus(id []string, moderationStatusstring) *CommentsSetModerationStatusCall
SetModerationStatus: Sets the moderation status of one or more comments.
- id: Modifies the moderation status of the comments with the given IDs.
- moderationStatus: Specifies the requested moderation status. Note,comments can be in statuses, which are not available through this call.For example, this call does not allow to mark a comment as 'likely spam'.Valid values: 'heldForReview', 'published' or 'rejected'.
func (*CommentsService)Update¶
func (r *CommentsService) Update(part []string, comment *Comment) *CommentsUpdateCall
Update: Updates an existing resource.
- part: The *part* parameter identifies the properties that the API responsewill include. You must at least include the snippet part in the parametervalue since that part contains all of the properties that the API requestcan update.
typeCommentsSetModerationStatusCall¶
type CommentsSetModerationStatusCall struct {// contains filtered or unexported fields}func (*CommentsSetModerationStatusCall)BanAuthor¶
func (c *CommentsSetModerationStatusCall) BanAuthor(banAuthorbool) *CommentsSetModerationStatusCall
BanAuthor sets the optional parameter "banAuthor": If set to true the authorof the comment gets added to the ban list. This means all future comments ofthe author will autmomatically be rejected. Only valid in combination withSTATUS_REJECTED.
func (*CommentsSetModerationStatusCall)Context¶
func (c *CommentsSetModerationStatusCall) Context(ctxcontext.Context) *CommentsSetModerationStatusCall
Context sets the context to be used in this call's Do method.
func (*CommentsSetModerationStatusCall)Do¶
func (c *CommentsSetModerationStatusCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.comments.setModerationStatus" call.
func (*CommentsSetModerationStatusCall)Fields¶
func (c *CommentsSetModerationStatusCall) Fields(s ...googleapi.Field) *CommentsSetModerationStatusCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CommentsSetModerationStatusCall)Header¶
func (c *CommentsSetModerationStatusCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeCommentsUpdateCall¶
type CommentsUpdateCall struct {// contains filtered or unexported fields}func (*CommentsUpdateCall)Context¶
func (c *CommentsUpdateCall) Context(ctxcontext.Context) *CommentsUpdateCall
Context sets the context to be used in this call's Do method.
func (*CommentsUpdateCall)Do¶
func (c *CommentsUpdateCall) Do(opts ...googleapi.CallOption) (*Comment,error)
Do executes the "youtube.comments.update" call.Any non-2xx status code is an error. Response headers are in either*Comment.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*CommentsUpdateCall)Fields¶
func (c *CommentsUpdateCall) Fields(s ...googleapi.Field) *CommentsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*CommentsUpdateCall)Header¶
func (c *CommentsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeContentRating¶
type ContentRating struct {// AcbRating: The video's Australian Classification Board (ACB) or Australian// Communications and Media Authority (ACMA) rating. ACMA ratings are used to// classify children's television programming.//// Possible values:// "acbUnspecified"// "acbE" - E// "acbP" - Programs that have been given a P classification by the// Australian Communications and Media Authority. These programs are intended// for preschool children.// "acbC" - Programs that have been given a C classification by the// Australian Communications and Media Authority. These programs are intended// for children (other than preschool children) who are younger than 14 years// of age.// "acbG" - G// "acbPg" - PG// "acbM" - M// "acbMa15plus" - MA15+// "acbR18plus" - R18+// "acbUnrated"AcbRatingstring `json:"acbRating,omitempty"`// AgcomRating: The video's rating from Italy's Autorità per le Garanzie nelle// Comunicazioni (AGCOM).//// Possible values:// "agcomUnspecified"// "agcomT" - T// "agcomVm14" - VM14// "agcomVm18" - VM18// "agcomUnrated"AgcomRatingstring `json:"agcomRating,omitempty"`// AnatelRating: The video's Anatel (Asociación Nacional de Televisión)// rating for Chilean television.//// Possible values:// "anatelUnspecified"// "anatelF" - F// "anatelI" - I// "anatelI7" - I-7// "anatelI10" - I-10// "anatelI12" - I-12// "anatelR" - R// "anatelA" - A// "anatelUnrated"AnatelRatingstring `json:"anatelRating,omitempty"`// BbfcRating: The video's British Board of Film Classification (BBFC) rating.//// Possible values:// "bbfcUnspecified"// "bbfcU" - U// "bbfcPg" - PG// "bbfc12a" - 12A// "bbfc12" - 12// "bbfc15" - 15// "bbfc18" - 18// "bbfcR18" - R18// "bbfcUnrated"BbfcRatingstring `json:"bbfcRating,omitempty"`// BfvcRating: The video's rating from Thailand's Board of Film and Video// Censors.//// Possible values:// "bfvcUnspecified"// "bfvcG" - G// "bfvcE" - E// "bfvc13" - 13// "bfvc15" - 15// "bfvc18" - 18// "bfvc20" - 20// "bfvcB" - B// "bfvcUnrated"BfvcRatingstring `json:"bfvcRating,omitempty"`// BmukkRating: The video's rating from the Austrian Board of Media// Classification (Bundesministerium für Unterricht, Kunst und Kultur).//// Possible values:// "bmukkUnspecified"// "bmukkAa" - Unrestricted// "bmukk6" - 6+// "bmukk8" - 8+// "bmukk10" - 10+// "bmukk12" - 12+// "bmukk14" - 14+// "bmukk16" - 16+// "bmukkUnrated"BmukkRatingstring `json:"bmukkRating,omitempty"`// CatvRating: Rating system for Canadian TV - Canadian TV Classification// System The video's rating from the Canadian Radio-Television and// Telecommunications Commission (CRTC) for Canadian English-language// broadcasts. For more information, see the Canadian Broadcast Standards// Council website.//// Possible values:// "catvUnspecified"// "catvC" - C// "catvC8" - C8// "catvG" - G// "catvPg" - PG// "catv14plus" - 14+// "catv18plus" - 18+// "catvUnrated"// "catvE"CatvRatingstring `json:"catvRating,omitempty"`// CatvfrRating: The video's rating from the Canadian Radio-Television and// Telecommunications Commission (CRTC) for Canadian French-language// broadcasts. For more information, see the Canadian Broadcast Standards// Council website.//// Possible values:// "catvfrUnspecified"// "catvfrG" - G// "catvfr8plus" - 8+// "catvfr13plus" - 13+// "catvfr16plus" - 16+// "catvfr18plus" - 18+// "catvfrUnrated"// "catvfrE"CatvfrRatingstring `json:"catvfrRating,omitempty"`// CbfcRating: The video's Central Board of Film Certification (CBFC - India)// rating.//// Possible values:// "cbfcUnspecified"// "cbfcU" - U// "cbfcUA" - U/A// "cbfcUA7plus" - U/A 7+// "cbfcUA13plus" - U/A 13+// "cbfcUA16plus" - U/A 16+// "cbfcA" - A// "cbfcS" - S// "cbfcUnrated"CbfcRatingstring `json:"cbfcRating,omitempty"`// CccRating: The video's Consejo de Calificación Cinematográfica (Chile)// rating.//// Possible values:// "cccUnspecified"// "cccTe" - Todo espectador// "ccc6" - 6+ - Inconveniente para menores de 7 años// "ccc14" - 14+// "ccc18" - 18+// "ccc18v" - 18+ - contenido excesivamente violento// "ccc18s" - 18+ - contenido pornográfico// "cccUnrated"CccRatingstring `json:"cccRating,omitempty"`// CceRating: The video's rating from Portugal's Comissão de Classificação// de Espect´culos.//// Possible values:// "cceUnspecified"// "cceM4" - 4// "cceM6" - 6// "cceM12" - 12// "cceM16" - 16// "cceM18" - 18// "cceUnrated"// "cceM14" - 14CceRatingstring `json:"cceRating,omitempty"`// ChfilmRating: The video's rating in Switzerland.//// Possible values:// "chfilmUnspecified"// "chfilm0" - 0// "chfilm6" - 6// "chfilm12" - 12// "chfilm16" - 16// "chfilm18" - 18// "chfilmUnrated"ChfilmRatingstring `json:"chfilmRating,omitempty"`// ChvrsRating: The video's Canadian Home Video Rating System (CHVRS) rating.//// Possible values:// "chvrsUnspecified"// "chvrsG" - G// "chvrsPg" - PG// "chvrs14a" - 14A// "chvrs18a" - 18A// "chvrsR" - R// "chvrsE" - E// "chvrsUnrated"ChvrsRatingstring `json:"chvrsRating,omitempty"`// CicfRating: The video's rating from the Commission de Contrôle des Films// (Belgium).//// Possible values:// "cicfUnspecified"// "cicfE" - E// "cicfKtEa" - KT/EA// "cicfKntEna" - KNT/ENA// "cicfUnrated"CicfRatingstring `json:"cicfRating,omitempty"`// CnaRating: The video's rating from Romania's CONSILIUL NATIONAL AL// AUDIOVIZUALULUI (CNA).//// Possible values:// "cnaUnspecified"// "cnaAp" - AP// "cna12" - 12// "cna15" - 15// "cna18" - 18// "cna18plus" - 18+// "cnaUnrated"CnaRatingstring `json:"cnaRating,omitempty"`// CncRating: Rating system in France - Commission de classification// cinematographique//// Possible values:// "cncUnspecified"// "cncT" - T// "cnc10" - 10// "cnc12" - 12// "cnc16" - 16// "cnc18" - 18// "cncE" - E// "cncInterdiction" - interdiction// "cncUnrated"CncRatingstring `json:"cncRating,omitempty"`// CsaRating: The video's rating from France's Conseil supérieur de// l’audiovisuel, which rates broadcast content.//// Possible values:// "csaUnspecified"// "csaT" - T// "csa10" - 10// "csa12" - 12// "csa16" - 16// "csa18" - 18// "csaInterdiction" - Interdiction// "csaUnrated"CsaRatingstring `json:"csaRating,omitempty"`// CscfRating: The video's rating from Luxembourg's Commission de surveillance// de la classification des films (CSCF).//// Possible values:// "cscfUnspecified"// "cscfAl" - AL// "cscfA" - A// "cscf6" - 6// "cscf9" - 9// "cscf12" - 12// "cscf16" - 16// "cscf18" - 18// "cscfUnrated"CscfRatingstring `json:"cscfRating,omitempty"`// CzfilmRating: The video's rating in the Czech Republic.//// Possible values:// "czfilmUnspecified"// "czfilmU" - U// "czfilm12" - 12// "czfilm14" - 14// "czfilm18" - 18// "czfilmUnrated"CzfilmRatingstring `json:"czfilmRating,omitempty"`// DjctqRating: The video's Departamento de Justiça, Classificação,// Qualificação e Títulos (DJCQT - Brazil) rating.//// Possible values:// "djctqUnspecified"// "djctqL" - L// "djctq10" - 10// "djctq12" - 12// "djctq14" - 14// "djctq16" - 16// "djctq18" - 18// "djctqEr"// "djctqL10"// "djctqL12"// "djctqL14"// "djctqL16"// "djctqL18"// "djctq1012"// "djctq1014"// "djctq1016"// "djctq1018"// "djctq1214"// "djctq1216"// "djctq1218"// "djctq1416"// "djctq1418"// "djctq1618"// "djctqUnrated"DjctqRatingstring `json:"djctqRating,omitempty"`// DjctqRatingReasons: Reasons that explain why the video received its DJCQT// (Brazil) rating.//// Possible values:// "djctqRatingReasonUnspecified"// "djctqViolence" - Brazil rating content descriptors. See//http://go/brazilratings section F. Violência (Violence)// "djctqExtremeViolence" - Violência extrema (Extreme violence)// "djctqSexualContent" - Conteúdo sexual (Sexual content)// "djctqNudity" - Nudez (Nudity)// "djctqSex" - Sexo (Sex)// "djctqExplicitSex" - Sexo Explícito (Explicit sex)// "djctqDrugs" - Drogas (Drugs)// "djctqLegalDrugs" - Drogas Lícitas (Legal drugs)// "djctqIllegalDrugs" - Drogas Ilícitas (Illegal drugs)// "djctqInappropriateLanguage" - Linguagem Imprópria (Inappropriate// language)// "djctqCriminalActs" - Atos Criminosos (Criminal Acts)// "djctqImpactingContent" - Conteúdo Impactante (Impacting content)// "djctqFear" - Temer (Fear)// "djctqMedicalProcedures" - Procedimentos médicos (Medical Procedures)// "djctqSensitiveTopics" - Tópicos sensíveis (Sensitive Topics)// "djctqFantasyViolence" - Fantasia Violência (Fantasy Violence)DjctqRatingReasons []string `json:"djctqRatingReasons,omitempty"`// EcbmctRating: Rating system in Turkey - Evaluation and Classification Board// of the Ministry of Culture and Tourism//// Possible values:// "ecbmctUnspecified"// "ecbmctG" - G// "ecbmct7a" - 7A// "ecbmct7plus" - 7+// "ecbmct13a" - 13A// "ecbmct13plus" - 13+// "ecbmct15a" - 15A// "ecbmct15plus" - 15+// "ecbmct18plus" - 18+// "ecbmctUnrated"EcbmctRatingstring `json:"ecbmctRating,omitempty"`// EefilmRating: The video's rating in Estonia.//// Possible values:// "eefilmUnspecified"// "eefilmPere" - Pere// "eefilmL" - L// "eefilmMs6" - MS-6// "eefilmK6" - K-6// "eefilmMs12" - MS-12// "eefilmK12" - K-12// "eefilmK14" - K-14// "eefilmK16" - K-16// "eefilmUnrated"EefilmRatingstring `json:"eefilmRating,omitempty"`// EgfilmRating: The video's rating in Egypt.//// Possible values:// "egfilmUnspecified"// "egfilmGn" - GN// "egfilm18" - 18// "egfilmBn" - BN// "egfilmUnrated"EgfilmRatingstring `json:"egfilmRating,omitempty"`// EirinRating: The video's Eirin (映倫) rating. Eirin is the Japanese rating// system.//// Possible values:// "eirinUnspecified"// "eirinG" - G// "eirinPg12" - PG-12// "eirinR15plus" - R15+// "eirinR18plus" - R18+// "eirinUnrated"EirinRatingstring `json:"eirinRating,omitempty"`// FcbmRating: The video's rating from Malaysia's Film Censorship Board.//// Possible values:// "fcbmUnspecified"// "fcbmU" - U// "fcbmPg13" - PG13// "fcbmP13" - P13// "fcbm18" - 18// "fcbm18sx" - 18SX// "fcbm18pa" - 18PA// "fcbm18sg" - 18SG// "fcbm18pl" - 18PL// "fcbmUnrated"FcbmRatingstring `json:"fcbmRating,omitempty"`// FcoRating: The video's rating from Hong Kong's Office for Film, Newspaper// and Article Administration.//// Possible values:// "fcoUnspecified"// "fcoI" - I// "fcoIia" - IIA// "fcoIib" - IIB// "fcoIi" - II// "fcoIii" - III// "fcoUnrated"FcoRatingstring `json:"fcoRating,omitempty"`// FmocRating: This property has been deprecated. Use the// contentDetails.contentRating.cncRating instead.//// Possible values:// "fmocUnspecified"// "fmocU" - U// "fmoc10" - 10// "fmoc12" - 12// "fmoc16" - 16// "fmoc18" - 18// "fmocE" - E// "fmocUnrated"FmocRatingstring `json:"fmocRating,omitempty"`// FpbRating: The video's rating from South Africa's Film and Publication// Board.//// Possible values:// "fpbUnspecified"// "fpbA" - A// "fpbPg" - PG// "fpb79Pg" - 7-9PG// "fpb1012Pg" - 10-12PG// "fpb13" - 13// "fpb16" - 16// "fpb18" - 18// "fpbX18" - X18// "fpbXx" - XX// "fpbUnrated"// "fpb10" - 10FpbRatingstring `json:"fpbRating,omitempty"`// FpbRatingReasons: Reasons that explain why the video received its FPB (South// Africa) rating.//// Possible values:// "fpbRatingReasonUnspecified"// "fpbBlasphemy" - South Africa rating content descriptors.// "fpbLanguage"// "fpbNudity"// "fpbPrejudice"// "fpbSex"// "fpbViolence"// "fpbDrugs"// "fpbSexualViolence"// "fpbHorror"// "fpbCriminalTechniques"// "fpbImitativeActsTechniques"FpbRatingReasons []string `json:"fpbRatingReasons,omitempty"`// FskRating: The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK -// Germany) rating.//// Possible values:// "fskUnspecified"// "fsk0" - FSK 0// "fsk6" - FSK 6// "fsk12" - FSK 12// "fsk16" - FSK 16// "fsk18" - FSK 18// "fskUnrated"FskRatingstring `json:"fskRating,omitempty"`// GrfilmRating: The video's rating in Greece.//// Possible values:// "grfilmUnspecified"// "grfilmK" - K// "grfilmE" - E// "grfilmK12" - K-12// "grfilmK13" - K-13// "grfilmK15" - K-15// "grfilmK17" - K-17// "grfilmK18" - K-18// "grfilmUnrated"GrfilmRatingstring `json:"grfilmRating,omitempty"`// IcaaRating: The video's Instituto de la Cinematografía y de las Artes// Audiovisuales (ICAA - Spain) rating.//// Possible values:// "icaaUnspecified"// "icaaApta" - APTA// "icaa7" - 7// "icaa12" - 12// "icaa13" - 13// "icaa16" - 16// "icaa18" - 18// "icaaX" - X// "icaaUnrated"IcaaRatingstring `json:"icaaRating,omitempty"`// IfcoRating: The video's Irish Film Classification Office (IFCO - Ireland)// rating. See the IFCO website for more information.//// Possible values:// "ifcoUnspecified"// "ifcoG" - G// "ifcoPg" - PG// "ifco12" - 12// "ifco12a" - 12A// "ifco15" - 15// "ifco15a" - 15A// "ifco16" - 16// "ifco18" - 18// "ifcoUnrated"IfcoRatingstring `json:"ifcoRating,omitempty"`// IlfilmRating: The video's rating in Israel.//// Possible values:// "ilfilmUnspecified"// "ilfilmAa" - AA// "ilfilm12" - 12// "ilfilm14" - 14// "ilfilm16" - 16// "ilfilm18" - 18// "ilfilmUnrated"IlfilmRatingstring `json:"ilfilmRating,omitempty"`// IncaaRating: The video's INCAA (Instituto Nacional de Cine y Artes// Audiovisuales - Argentina) rating.//// Possible values:// "incaaUnspecified"// "incaaAtp" - ATP (Apta para todo publico)// "incaaSam13" - 13 (Solo apta para mayores de 13 años)// "incaaSam16" - 16 (Solo apta para mayores de 16 años)// "incaaSam18" - 18 (Solo apta para mayores de 18 años)// "incaaC" - X (Solo apta para mayores de 18 años, de exhibición// condicionada)// "incaaUnrated"IncaaRatingstring `json:"incaaRating,omitempty"`// KfcbRating: The video's rating from the Kenya Film Classification Board.//// Possible values:// "kfcbUnspecified"// "kfcbG" - GE// "kfcbPg" - PG// "kfcb16plus" - 16// "kfcbR" - 18// "kfcbUnrated"KfcbRatingstring `json:"kfcbRating,omitempty"`// KijkwijzerRating: The video's NICAM/Kijkwijzer rating from the Nederlands// Instituut voor de Classificatie van Audiovisuele Media (Netherlands).//// Possible values:// "kijkwijzerUnspecified"// "kijkwijzerAl" - AL// "kijkwijzer6" - 6// "kijkwijzer9" - 9// "kijkwijzer12" - 12// "kijkwijzer16" - 16// "kijkwijzer18"// "kijkwijzerUnrated"KijkwijzerRatingstring `json:"kijkwijzerRating,omitempty"`// KmrbRating: The video's Korea Media Rating Board (영상물등급위원회)// rating. The KMRB rates videos in South Korea.//// Possible values:// "kmrbUnspecified"// "kmrbAll" - 전체관람가// "kmrb12plus" - 12세 이상 관람가// "kmrb15plus" - 15세 이상 관람가// "kmrbTeenr"// "kmrbR" - 청소년 관람불가// "kmrbUnrated"KmrbRatingstring `json:"kmrbRating,omitempty"`// LsfRating: The video's rating from Indonesia's Lembaga Sensor Film.//// Possible values:// "lsfUnspecified"// "lsfSu" - SU// "lsfA" - A// "lsfBo" - BO// "lsf13" - 13// "lsfR" - R// "lsf17" - 17// "lsfD" - D// "lsf21" - 21// "lsfUnrated"LsfRatingstring `json:"lsfRating,omitempty"`// MccaaRating: The video's rating from Malta's Film Age-Classification Board.//// Possible values:// "mccaaUnspecified"// "mccaaU" - U// "mccaaPg" - PG// "mccaa12a" - 12A// "mccaa12" - 12// "mccaa14" - 14 - this rating was removed from the new classification// structure introduced in 2013.// "mccaa15" - 15// "mccaa16" - 16 - this rating was removed from the new classification// structure introduced in 2013.// "mccaa18" - 18// "mccaaUnrated"MccaaRatingstring `json:"mccaaRating,omitempty"`// MccypRating: The video's rating from the Danish Film Institute's (Det Danske// Filminstitut) Media Council for Children and Young People.//// Possible values:// "mccypUnspecified"// "mccypA" - A// "mccyp7" - 7// "mccyp11" - 11// "mccyp15" - 15// "mccypUnrated"MccypRatingstring `json:"mccypRating,omitempty"`// McstRating: The video's rating system for Vietnam - MCST//// Possible values:// "mcstUnspecified"// "mcstP" - P// "mcst0" - 0// "mcstC13" - C13// "mcstC16" - C16// "mcst16plus" - 16+// "mcstC18" - C18// "mcstGPg" - MCST_G_PG// "mcstUnrated"McstRatingstring `json:"mcstRating,omitempty"`// MdaRating: The video's rating from Singapore's Media Development Authority// (MDA) and, specifically, it's Board of Film Censors (BFC).//// Possible values:// "mdaUnspecified"// "mdaG" - G// "mdaPg" - PG// "mdaPg13" - PG13// "mdaNc16" - NC16// "mdaM18" - M18// "mdaR21" - R21// "mdaUnrated"MdaRatingstring `json:"mdaRating,omitempty"`// MedietilsynetRating: The video's rating from Medietilsynet, the Norwegian// Media Authority.//// Possible values:// "medietilsynetUnspecified"// "medietilsynetA" - A// "medietilsynet6" - 6// "medietilsynet7" - 7// "medietilsynet9" - 9// "medietilsynet11" - 11// "medietilsynet12" - 12// "medietilsynet15" - 15// "medietilsynet18" - 18// "medietilsynetUnrated"MedietilsynetRatingstring `json:"medietilsynetRating,omitempty"`// MekuRating: The video's rating from Finland's Kansallinen Audiovisuaalinen// Instituutti (National Audiovisual Institute).//// Possible values:// "mekuUnspecified"// "mekuS" - S// "meku7" - 7// "meku12" - 12// "meku16" - 16// "meku18" - 18// "mekuUnrated"MekuRatingstring `json:"mekuRating,omitempty"`// MenaMpaaRating: The rating system for MENA countries, a clone of MPAA. It is// needed to prevent titles go live w/o additional QC check, since some of them// can be inappropriate for the countries at all. See b/33408548 for more// details.//// Possible values:// "menaMpaaUnspecified"// "menaMpaaG" - G// "menaMpaaPg" - PG// "menaMpaaPg13" - PG-13// "menaMpaaR" - R// "menaMpaaUnrated" - To keep the same enum values as MPAA's items have,// skip NC_17.MenaMpaaRatingstring `json:"menaMpaaRating,omitempty"`// MibacRating: The video's rating from the Ministero dei Beni e delle// Attività Culturali e del Turismo (Italy).//// Possible values:// "mibacUnspecified"// "mibacT"// "mibacVap"// "mibacVm6"// "mibacVm12"// "mibacVm14"// "mibacVm16"// "mibacVm18"// "mibacUnrated"MibacRatingstring `json:"mibacRating,omitempty"`// MocRating: The video's Ministerio de Cultura (Colombia) rating.//// Possible values:// "mocUnspecified"// "mocE" - E// "mocT" - T// "moc7" - 7// "moc12" - 12// "moc15" - 15// "moc18" - 18// "mocX" - X// "mocBanned" - Banned// "mocUnrated"MocRatingstring `json:"mocRating,omitempty"`// MoctwRating: The video's rating from Taiwan's Ministry of Culture// (文化部).//// Possible values:// "moctwUnspecified"// "moctwG" - G// "moctwP" - P// "moctwPg" - PG// "moctwR" - R// "moctwUnrated"// "moctwR12" - R-12// "moctwR15" - R-15MoctwRatingstring `json:"moctwRating,omitempty"`// MpaaRating: The video's Motion Picture Association of America (MPAA) rating.//// Possible values:// "mpaaUnspecified"// "mpaaG" - G// "mpaaPg" - PG// "mpaaPg13" - PG-13// "mpaaR" - R// "mpaaNc17" - NC-17// "mpaaX" - ! X// "mpaaUnrated"MpaaRatingstring `json:"mpaaRating,omitempty"`// MpaatRating: The rating system for trailer, DVD, and Ad in the US. See//http://movielabs.com/md/ratings/v2.3/html/US_MPAAT_Ratings.html.//// Possible values:// "mpaatUnspecified"// "mpaatGb" - GB// "mpaatRb" - RBMpaatRatingstring `json:"mpaatRating,omitempty"`// MtrcbRating: The video's rating from the Movie and Television Review and// Classification Board (Philippines).//// Possible values:// "mtrcbUnspecified"// "mtrcbG" - G// "mtrcbPg" - PG// "mtrcbR13" - R-13// "mtrcbR16" - R-16// "mtrcbR18" - R-18// "mtrcbX" - X// "mtrcbUnrated"MtrcbRatingstring `json:"mtrcbRating,omitempty"`// NbcRating: The video's rating from the Maldives National Bureau of// Classification.//// Possible values:// "nbcUnspecified"// "nbcG" - G// "nbcPg" - PG// "nbc12plus" - 12+// "nbc15plus" - 15+// "nbc18plus" - 18+// "nbc18plusr" - 18+R// "nbcPu" - PU// "nbcUnrated"NbcRatingstring `json:"nbcRating,omitempty"`// NbcplRating: The video's rating in Poland.//// Possible values:// "nbcplUnspecified"// "nbcplI"// "nbcplIi"// "nbcplIii"// "nbcplIv"// "nbcpl18plus"// "nbcplUnrated"NbcplRatingstring `json:"nbcplRating,omitempty"`// NfrcRating: The video's rating from the Bulgarian National Film Center.//// Possible values:// "nfrcUnspecified"// "nfrcA" - A// "nfrcB" - B// "nfrcC" - C// "nfrcD" - D// "nfrcX" - X// "nfrcUnrated"NfrcRatingstring `json:"nfrcRating,omitempty"`// NfvcbRating: The video's rating from Nigeria's National Film and Video// Censors Board.//// Possible values:// "nfvcbUnspecified"// "nfvcbG" - G// "nfvcbPg" - PG// "nfvcb12" - 12// "nfvcb12a" - 12A// "nfvcb15" - 15// "nfvcb18" - 18// "nfvcbRe" - RE// "nfvcbUnrated"NfvcbRatingstring `json:"nfvcbRating,omitempty"`// NkclvRating: The video's rating from the Nacionãlais Kino centrs (National// Film Centre of Latvia).//// Possible values:// "nkclvUnspecified"// "nkclvU" - U// "nkclv7plus" - 7+// "nkclv12plus" - 12+// "nkclv16plus" - ! 16+// "nkclv18plus" - 18+// "nkclvUnrated"NkclvRatingstring `json:"nkclvRating,omitempty"`// NmcRating: The National Media Council ratings system for United Arab// Emirates.//// Possible values:// "nmcUnspecified"// "nmcG" - G// "nmcPg" - PG// "nmcPg13" - PG-13// "nmcPg15" - PG-15// "nmc15plus" - 15+// "nmc18plus" - 18+// "nmc18tc" - 18TC// "nmcUnrated"NmcRatingstring `json:"nmcRating,omitempty"`// OflcRating: The video's Office of Film and Literature Classification (OFLC -// New Zealand) rating.//// Possible values:// "oflcUnspecified"// "oflcG" - G// "oflcPg" - PG// "oflcM" - M// "oflcR13" - R13// "oflcR15" - R15// "oflcR16" - R16// "oflcR18" - R18// "oflcUnrated"// "oflcRp13" - RP13// "oflcRp16" - RP16// "oflcRp18" - RP18OflcRatingstring `json:"oflcRating,omitempty"`// PefilmRating: The video's rating in Peru.//// Possible values:// "pefilmUnspecified"// "pefilmPt" - PT// "pefilmPg" - PG// "pefilm14" - 14// "pefilm18" - 18// "pefilmUnrated"PefilmRatingstring `json:"pefilmRating,omitempty"`// RcnofRating: The video's rating from the Hungarian Nemzeti Filmiroda, the// Rating Committee of the National Office of Film.//// Possible values:// "rcnofUnspecified"// "rcnofI"// "rcnofIi"// "rcnofIii"// "rcnofIv"// "rcnofV"// "rcnofVi"// "rcnofUnrated"RcnofRatingstring `json:"rcnofRating,omitempty"`// ResorteviolenciaRating: The video's rating in Venezuela.//// Possible values:// "resorteviolenciaUnspecified"// "resorteviolenciaA" - A// "resorteviolenciaB" - B// "resorteviolenciaC" - C// "resorteviolenciaD" - D// "resorteviolenciaE" - E// "resorteviolenciaUnrated"ResorteviolenciaRatingstring `json:"resorteviolenciaRating,omitempty"`// RtcRating: The video's General Directorate of Radio, Television and// Cinematography (Mexico) rating.//// Possible values:// "rtcUnspecified"// "rtcAa" - AA// "rtcA" - A// "rtcB" - B// "rtcB15" - B15// "rtcC" - C// "rtcD" - D// "rtcUnrated"RtcRatingstring `json:"rtcRating,omitempty"`// RteRating: The video's rating from Ireland's Raidió Teilifís Éireann.//// Possible values:// "rteUnspecified"// "rteGa" - GA// "rteCh" - CH// "rtePs" - PS// "rteMa" - MA// "rteUnrated"RteRatingstring `json:"rteRating,omitempty"`// RussiaRating: The video's National Film Registry of the Russian Federation// (MKRF - Russia) rating.//// Possible values:// "russiaUnspecified"// "russia0" - 0+// "russia6" - 6+// "russia12" - 12+// "russia16" - 16+// "russia18" - 18+// "russiaUnrated"RussiaRatingstring `json:"russiaRating,omitempty"`// SkfilmRating: The video's rating in Slovakia.//// Possible values:// "skfilmUnspecified"// "skfilmG" - G// "skfilmP2" - P2// "skfilmP5" - P5// "skfilmP8" - P8// "skfilmUnrated"SkfilmRatingstring `json:"skfilmRating,omitempty"`// SmaisRating: The video's rating in Iceland.//// Possible values:// "smaisUnspecified"// "smaisL" - L// "smais7" - 7// "smais12" - 12// "smais14" - 14// "smais16" - 16// "smais18" - 18// "smaisUnrated"SmaisRatingstring `json:"smaisRating,omitempty"`// SmsaRating: The video's rating from Statens medieråd (Sweden's National// Media Council).//// Possible values:// "smsaUnspecified"// "smsaA" - All ages// "smsa7" - 7// "smsa11" - 11// "smsa15" - 15// "smsaUnrated"SmsaRatingstring `json:"smsaRating,omitempty"`// TvpgRating: The video's TV Parental Guidelines (TVPG) rating.//// Possible values:// "tvpgUnspecified"// "tvpgY" - TV-Y// "tvpgY7" - TV-Y7// "tvpgY7Fv" - TV-Y7-FV// "tvpgG" - TV-G// "tvpgPg" - TV-PG// "pg14" - TV-14// "tvpgMa" - TV-MA// "tvpgUnrated"TvpgRatingstring `json:"tvpgRating,omitempty"`// YtRating: A rating that YouTube uses to identify age-restricted content.//// Possible values:// "ytUnspecified"// "ytAgeRestricted"YtRatingstring `json:"ytRating,omitempty"`// ForceSendFields is a list of field names (e.g. "AcbRating") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AcbRating") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ContentRating: Ratings schemes. The country-specific ratings are mostly formovies and shows. LINT.IfChange
func (ContentRating)MarshalJSON¶
func (sContentRating) MarshalJSON() ([]byte,error)
typeCuepoint¶added inv0.84.0
type Cuepoint struct {// Possible values:// "cueTypeUnspecified"// "cueTypeAd"CueTypestring `json:"cueType,omitempty"`// DurationSecs: The duration of this cuepoint.DurationSecsint64 `json:"durationSecs,omitempty"`Etagstring `json:"etag,omitempty"`// Id: The identifier for cuepoint resource.Idstring `json:"id,omitempty"`// InsertionOffsetTimeMs: The time when the cuepoint should be inserted by// offset to the broadcast actual start time.InsertionOffsetTimeMsint64 `json:"insertionOffsetTimeMs,omitempty,string"`// WalltimeMs: The wall clock time at which the cuepoint should be inserted.// Only one of insertion_offset_time_ms and walltime_ms may be set at a time.WalltimeMsuint64 `json:"walltimeMs,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CueType") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CueType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Cuepoint: Note that there may be a 5-second end-point resolution issue. Forinstance, if a cuepoint comes in for 22:03:27, we may stuff the cuepointinto 22:03:25 or 22:03:30, depending. This is an artifact of HLS.
func (Cuepoint)MarshalJSON¶added inv0.84.0
typeCuepointSchedule¶added inv0.135.0
type CuepointSchedule struct {// Enabled: This field is semantically required. If it is set false or not set,// other fields in this message will be ignored.Enabledbool `json:"enabled,omitempty"`// PauseAdsUntil: If set, automatic cuepoint insertion is paused until this// timestamp ("No Ad Zone"). The value is specified in ISO 8601 format.PauseAdsUntilstring `json:"pauseAdsUntil,omitempty"`// RepeatIntervalSecs: Interval frequency in seconds that api uses to insert// cuepoints automatically.RepeatIntervalSecsint64 `json:"repeatIntervalSecs,omitempty"`// ScheduleStrategy: The strategy to use when scheduling cuepoints.//// Possible values:// "scheduleStrategyUnspecified"// "concurrent" - Strategy to schedule cuepoints at one time for all viewers.// "nonConcurrent" - Strategy to schedule cuepoints at an increased rate to// allow viewers to receive cuepoints when eligible. See// go/lcr-non-concurrent-ads for more details.ScheduleStrategystring `json:"scheduleStrategy,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CuepointSchedule: Schedule to insert cuepoints into a broadcast by adsautomator.
func (CuepointSchedule)MarshalJSON¶added inv0.135.0
func (sCuepointSchedule) MarshalJSON() ([]byte,error)
typeEntity¶added inv0.29.0
type Entity struct {Idstring `json:"id,omitempty"`TypeIdstring `json:"typeId,omitempty"`Urlstring `json:"url,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (Entity)MarshalJSON¶added inv0.29.0
typeGeoPoint¶
type GeoPoint struct {// Altitude: Altitude above the reference ellipsoid, in meters.Altitudefloat64 `json:"altitude,omitempty"`// Latitude: Latitude in degrees.Latitudefloat64 `json:"latitude,omitempty"`// Longitude: Longitude in degrees.Longitudefloat64 `json:"longitude,omitempty"`// ForceSendFields is a list of field names (e.g. "Altitude") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Altitude") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GeoPoint: Geographical coordinates of a point, in WGS84.
func (GeoPoint)MarshalJSON¶
func (*GeoPoint)UnmarshalJSON¶
typeI18nLanguage¶
type I18nLanguage struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the i18n language.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#i18nLanguage".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the i18n language,// such as language code and human-readable name.Snippet *I18nLanguageSnippet `json:"snippet,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}I18nLanguage: An *i18nLanguage* resource identifies a UI language currentlysupported by YouTube.
func (I18nLanguage)MarshalJSON¶
func (sI18nLanguage) MarshalJSON() ([]byte,error)
typeI18nLanguageListResponse¶
type I18nLanguageListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of supported i18n languages. In this map, the i18n language ID// is the map key, and its value is the corresponding i18nLanguage resource.Items []*I18nLanguage `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#i18nLanguageListResponse".Kindstring `json:"kind,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (I18nLanguageListResponse)MarshalJSON¶
func (sI18nLanguageListResponse) MarshalJSON() ([]byte,error)
typeI18nLanguageSnippet¶
type I18nLanguageSnippet struct {// Hl: A short BCP-47 code that uniquely identifies a language.Hlstring `json:"hl,omitempty"`// Name: The human-readable name of the language in the language itself.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Hl") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Hl") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}I18nLanguageSnippet: Basic details about an i18n language, such as languagecode and human-readable name.
func (I18nLanguageSnippet)MarshalJSON¶
func (sI18nLanguageSnippet) MarshalJSON() ([]byte,error)
typeI18nLanguagesListCall¶
type I18nLanguagesListCall struct {// contains filtered or unexported fields}func (*I18nLanguagesListCall)Context¶
func (c *I18nLanguagesListCall) Context(ctxcontext.Context) *I18nLanguagesListCall
Context sets the context to be used in this call's Do method.
func (*I18nLanguagesListCall)Do¶
func (c *I18nLanguagesListCall) Do(opts ...googleapi.CallOption) (*I18nLanguageListResponse,error)
Do executes the "youtube.i18nLanguages.list" call.Any non-2xx status code is an error. Response headers are in either*I18nLanguageListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*I18nLanguagesListCall)Fields¶
func (c *I18nLanguagesListCall) Fields(s ...googleapi.Field) *I18nLanguagesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*I18nLanguagesListCall)Header¶
func (c *I18nLanguagesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*I18nLanguagesListCall)Hl¶
func (c *I18nLanguagesListCall) Hl(hlstring) *I18nLanguagesListCall
Hl sets the optional parameter "hl":
func (*I18nLanguagesListCall)IfNoneMatch¶
func (c *I18nLanguagesListCall) IfNoneMatch(entityTagstring) *I18nLanguagesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeI18nLanguagesService¶
type I18nLanguagesService struct {// contains filtered or unexported fields}funcNewI18nLanguagesService¶
func NewI18nLanguagesService(s *Service) *I18nLanguagesService
func (*I18nLanguagesService)List¶
func (r *I18nLanguagesService) List(part []string) *I18nLanguagesListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies the i18nLanguage resource propertiesthat the API response will include. Set the parameter value to snippet.
typeI18nRegion¶
type I18nRegion struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the i18n region.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#i18nRegion".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the i18n region,// such as region code and human-readable name.Snippet *I18nRegionSnippet `json:"snippet,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}I18nRegion: A *i18nRegion* resource identifies a region where YouTube isavailable.
func (I18nRegion)MarshalJSON¶
func (sI18nRegion) MarshalJSON() ([]byte,error)
typeI18nRegionListResponse¶
type I18nRegionListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of regions where YouTube is available. In this map, the i18n// region ID is the map key, and its value is the corresponding i18nRegion// resource.Items []*I18nRegion `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#i18nRegionListResponse".Kindstring `json:"kind,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (I18nRegionListResponse)MarshalJSON¶
func (sI18nRegionListResponse) MarshalJSON() ([]byte,error)
typeI18nRegionSnippet¶
type I18nRegionSnippet struct {// Gl: The region code as a 2-letter ISO country code.Glstring `json:"gl,omitempty"`// Name: The human-readable name of the region.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Gl") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Gl") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}I18nRegionSnippet: Basic details about an i18n region, such as region codeand human-readable name.
func (I18nRegionSnippet)MarshalJSON¶
func (sI18nRegionSnippet) MarshalJSON() ([]byte,error)
typeI18nRegionsListCall¶
type I18nRegionsListCall struct {// contains filtered or unexported fields}func (*I18nRegionsListCall)Context¶
func (c *I18nRegionsListCall) Context(ctxcontext.Context) *I18nRegionsListCall
Context sets the context to be used in this call's Do method.
func (*I18nRegionsListCall)Do¶
func (c *I18nRegionsListCall) Do(opts ...googleapi.CallOption) (*I18nRegionListResponse,error)
Do executes the "youtube.i18nRegions.list" call.Any non-2xx status code is an error. Response headers are in either*I18nRegionListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*I18nRegionsListCall)Fields¶
func (c *I18nRegionsListCall) Fields(s ...googleapi.Field) *I18nRegionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*I18nRegionsListCall)Header¶
func (c *I18nRegionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*I18nRegionsListCall)Hl¶
func (c *I18nRegionsListCall) Hl(hlstring) *I18nRegionsListCall
Hl sets the optional parameter "hl":
func (*I18nRegionsListCall)IfNoneMatch¶
func (c *I18nRegionsListCall) IfNoneMatch(entityTagstring) *I18nRegionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeI18nRegionsService¶
type I18nRegionsService struct {// contains filtered or unexported fields}funcNewI18nRegionsService¶
func NewI18nRegionsService(s *Service) *I18nRegionsService
func (*I18nRegionsService)List¶
func (r *I18nRegionsService) List(part []string) *I18nRegionsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies the i18nRegion resource propertiesthat the API response will include. Set the parameter value to snippet.
typeImageSettings¶
type ImageSettings struct {// BackgroundImageUrl: The URL for the background image shown on the video// watch page. The image should be 1200px by 615px, with a maximum file size of// 128k.BackgroundImageUrl *LocalizedProperty `json:"backgroundImageUrl,omitempty"`// BannerExternalUrl: This is generated when a ChannelBanner.Insert request has// succeeded for the given channel.BannerExternalUrlstring `json:"bannerExternalUrl,omitempty"`// BannerImageUrl: Banner image. Desktop size (1060x175).BannerImageUrlstring `json:"bannerImageUrl,omitempty"`// BannerMobileExtraHdImageUrl: Banner image. Mobile size high resolution// (1440x395).BannerMobileExtraHdImageUrlstring `json:"bannerMobileExtraHdImageUrl,omitempty"`// BannerMobileHdImageUrl: Banner image. Mobile size high resolution// (1280x360).BannerMobileHdImageUrlstring `json:"bannerMobileHdImageUrl,omitempty"`// BannerMobileImageUrl: Banner image. Mobile size (640x175).BannerMobileImageUrlstring `json:"bannerMobileImageUrl,omitempty"`// BannerMobileLowImageUrl: Banner image. Mobile size low resolution (320x88).BannerMobileLowImageUrlstring `json:"bannerMobileLowImageUrl,omitempty"`// BannerMobileMediumHdImageUrl: Banner image. Mobile size medium/high// resolution (960x263).BannerMobileMediumHdImageUrlstring `json:"bannerMobileMediumHdImageUrl,omitempty"`// BannerTabletExtraHdImageUrl: Banner image. Tablet size extra high resolution// (2560x424).BannerTabletExtraHdImageUrlstring `json:"bannerTabletExtraHdImageUrl,omitempty"`// BannerTabletHdImageUrl: Banner image. Tablet size high resolution// (2276x377).BannerTabletHdImageUrlstring `json:"bannerTabletHdImageUrl,omitempty"`// BannerTabletImageUrl: Banner image. Tablet size (1707x283).BannerTabletImageUrlstring `json:"bannerTabletImageUrl,omitempty"`// BannerTabletLowImageUrl: Banner image. Tablet size low resolution// (1138x188).BannerTabletLowImageUrlstring `json:"bannerTabletLowImageUrl,omitempty"`// BannerTvHighImageUrl: Banner image. TV size high resolution (1920x1080).BannerTvHighImageUrlstring `json:"bannerTvHighImageUrl,omitempty"`// BannerTvImageUrl: Banner image. TV size extra high resolution (2120x1192).BannerTvImageUrlstring `json:"bannerTvImageUrl,omitempty"`// BannerTvLowImageUrl: Banner image. TV size low resolution (854x480).BannerTvLowImageUrlstring `json:"bannerTvLowImageUrl,omitempty"`// BannerTvMediumImageUrl: Banner image. TV size medium resolution (1280x720).BannerTvMediumImageUrlstring `json:"bannerTvMediumImageUrl,omitempty"`// LargeBrandedBannerImageImapScript: The image map script for the large banner// image.LargeBrandedBannerImageImapScript *LocalizedProperty `json:"largeBrandedBannerImageImapScript,omitempty"`// LargeBrandedBannerImageUrl: The URL for the 854px by 70px image that appears// below the video player in the expanded video view of the video watch page.LargeBrandedBannerImageUrl *LocalizedProperty `json:"largeBrandedBannerImageUrl,omitempty"`// SmallBrandedBannerImageImapScript: The image map script for the small banner// image.SmallBrandedBannerImageImapScript *LocalizedProperty `json:"smallBrandedBannerImageImapScript,omitempty"`// SmallBrandedBannerImageUrl: The URL for the 640px by 70px banner image that// appears below the video player in the default view of the video watch page.// The URL for the image that appears above the top-left corner of the video// player. This is a 25-pixel-high image with a flexible width that cannot// exceed 170 pixels.SmallBrandedBannerImageUrl *LocalizedProperty `json:"smallBrandedBannerImageUrl,omitempty"`// TrackingImageUrl: The URL for a 1px by 1px tracking pixel that can be used// to collect statistics for views of the channel or video pages.TrackingImageUrlstring `json:"trackingImageUrl,omitempty"`WatchIconImageUrlstring `json:"watchIconImageUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "BackgroundImageUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BackgroundImageUrl") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ImageSettings: Branding properties for images associated with the channel.
func (ImageSettings)MarshalJSON¶
func (sImageSettings) MarshalJSON() ([]byte,error)
typeIngestionInfo¶
type IngestionInfo struct {// BackupIngestionAddress: The backup ingestion URL that you should use to// stream video to YouTube. You have the option of simultaneously streaming the// content that you are sending to the ingestionAddress to this URL.BackupIngestionAddressstring `json:"backupIngestionAddress,omitempty"`// IngestionAddress: The primary ingestion URL that you should use to stream// video to YouTube. You must stream video to this URL. Depending on which// application or tool you use to encode your video stream, you may need to// enter the stream URL and stream name separately or you may need to// concatenate them in the following format: *STREAM_URL/STREAM_NAME*IngestionAddressstring `json:"ingestionAddress,omitempty"`// RtmpsBackupIngestionAddress: This ingestion url may be used instead of// backupIngestionAddress in order to stream via RTMPS. Not applicable to// non-RTMP streams.RtmpsBackupIngestionAddressstring `json:"rtmpsBackupIngestionAddress,omitempty"`// RtmpsIngestionAddress: This ingestion url may be used instead of// ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP// streams.RtmpsIngestionAddressstring `json:"rtmpsIngestionAddress,omitempty"`// StreamName: The stream name that YouTube assigns to the video stream.StreamNamestring `json:"streamName,omitempty"`// ForceSendFields is a list of field names (e.g. "BackupIngestionAddress") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BackupIngestionAddress") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}IngestionInfo: Describes information necessary for ingesting an RTMP, HTTP,or SRT stream.
func (IngestionInfo)MarshalJSON¶
func (sIngestionInfo) MarshalJSON() ([]byte,error)
typeInvideoBranding¶
type InvideoBranding struct {// ImageBytes: The bytes the uploaded image. Only used in api to youtube// communication.ImageBytesstring `json:"imageBytes,omitempty"`// ImageUrl: The url of the uploaded image. Only used in apiary to api// communication.ImageUrlstring `json:"imageUrl,omitempty"`// Position: The spatial position within the video where the branding watermark// will be displayed.Position *InvideoPosition `json:"position,omitempty"`// TargetChannelId: The channel to which this branding links. If not present it// defaults to the current channel.TargetChannelIdstring `json:"targetChannelId,omitempty"`// Timing: The temporal position within the video where watermark will be// displayed.Timing *InvideoTiming `json:"timing,omitempty"`// ForceSendFields is a list of field names (e.g. "ImageBytes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ImageBytes") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}InvideoBranding: Describes an invideo branding.
func (InvideoBranding)MarshalJSON¶
func (sInvideoBranding) MarshalJSON() ([]byte,error)
typeInvideoPosition¶
type InvideoPosition struct {// CornerPosition: Describes in which corner of the video the visual widget// will appear.//// Possible values:// "topLeft"// "topRight"// "bottomLeft"// "bottomRight"CornerPositionstring `json:"cornerPosition,omitempty"`// Type: Defines the position type.//// Possible values:// "corner"Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "CornerPosition") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CornerPosition") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}InvideoPosition: Describes the spatial position of a visual widget inside avideo. It is a union of various position types, out of which only will beset one.
func (InvideoPosition)MarshalJSON¶
func (sInvideoPosition) MarshalJSON() ([]byte,error)
typeInvideoTiming¶
type InvideoTiming struct {// DurationMs: Defines the duration in milliseconds for which the promotion// should be displayed. If missing, the client should use the default.DurationMsuint64 `json:"durationMs,omitempty,string"`// OffsetMs: Defines the time at which the promotion will appear. Depending on// the value of type the value of the offsetMs field will represent a time// offset from the start or from the end of the video, expressed in// milliseconds.OffsetMsuint64 `json:"offsetMs,omitempty,string"`// Type: Describes a timing type. If the value is offsetFromStart, then the// offsetMs field represents an offset from the start of the video. If the// value is offsetFromEnd, then the offsetMs field represents an offset from// the end of the video.//// Possible values:// "offsetFromStart"// "offsetFromEnd"Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "DurationMs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DurationMs") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}InvideoTiming: Describes a temporal position of a visual widget inside avideo.
func (InvideoTiming)MarshalJSON¶
func (sInvideoTiming) MarshalJSON() ([]byte,error)
typeLanguageTag¶
type LanguageTag struct {Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Value") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Value") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LanguageTag)MarshalJSON¶
func (sLanguageTag) MarshalJSON() ([]byte,error)
typeLevelDetails¶added inv0.9.0
type LevelDetails struct {// DisplayName: The name that should be used when referring to this level.DisplayNamestring `json:"displayName,omitempty"`// ForceSendFields is a list of field names (e.g. "DisplayName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LevelDetails)MarshalJSON¶added inv0.9.0
func (sLevelDetails) MarshalJSON() ([]byte,error)
typeLiveBroadcast¶
type LiveBroadcast struct {// ContentDetails: The contentDetails object contains information about the// event's video content, such as whether the content can be shown in an// embedded video player or if it will be archived and therefore available for// viewing after the event has concluded.ContentDetails *LiveBroadcastContentDetails `json:"contentDetails,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube assigns to uniquely identify the broadcast.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#liveBroadcast".Kindstring `json:"kind,omitempty"`// MonetizationDetails: The monetizationDetails object contains information// about the event's monetization details.MonetizationDetails *LiveBroadcastMonetizationDetails `json:"monetizationDetails,omitempty"`// Snippet: The snippet object contains basic details about the event,// including its title, description, start time, and end time.Snippet *LiveBroadcastSnippet `json:"snippet,omitempty"`// Statistics: The statistics object contains info about the event's current// stats. These include concurrent viewers and total chat count. Statistics can// change (in either direction) during the lifetime of an event. Statistics are// only returned while the event is live.Statistics *LiveBroadcastStatistics `json:"statistics,omitempty"`// Status: The status object contains information about the event's status.Status *LiveBroadcastStatus `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContentDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentDetails") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveBroadcast: A *liveBroadcast* resource represents an event that will bestreamed, via live video, on YouTube.
func (LiveBroadcast)MarshalJSON¶
func (sLiveBroadcast) MarshalJSON() ([]byte,error)
typeLiveBroadcastContentDetails¶
type LiveBroadcastContentDetails struct {// BoundStreamId: This value uniquely identifies the live stream bound to the// broadcast.BoundStreamIdstring `json:"boundStreamId,omitempty"`// BoundStreamLastUpdateTimeMs: The date and time that the live stream// referenced by boundStreamId was last updated.BoundStreamLastUpdateTimeMsstring `json:"boundStreamLastUpdateTimeMs,omitempty"`// Possible values:// "closedCaptionsTypeUnspecified"// "closedCaptionsDisabled"// "closedCaptionsHttpPost"// "closedCaptionsEmbedded"ClosedCaptionsTypestring `json:"closedCaptionsType,omitempty"`// EnableAutoStart: This setting indicates whether auto start is enabled for// this broadcast. The default value for this property is false. This setting// can only be used by Events.EnableAutoStartbool `json:"enableAutoStart,omitempty"`// EnableAutoStop: This setting indicates whether auto stop is enabled for this// broadcast. The default value for this property is false. This setting can// only be used by Events.EnableAutoStopbool `json:"enableAutoStop,omitempty"`// EnableClosedCaptions: This setting indicates whether HTTP POST closed// captioning is enabled for this broadcast. The ingestion URL of the closed// captions is returned through the liveStreams API. This is mutually exclusive// with using the closed_captions_type property, and is equivalent to setting// closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.EnableClosedCaptionsbool `json:"enableClosedCaptions,omitempty"`// EnableContentEncryption: This setting indicates whether YouTube should// enable content encryption for the broadcast.EnableContentEncryptionbool `json:"enableContentEncryption,omitempty"`// EnableDvr: This setting determines whether viewers can access DVR controls// while watching the video. DVR controls enable the viewer to control the// video playback experience by pausing, rewinding, or fast forwarding content.// The default value for this property is true. *Important:* You must set the// value to true and also set the enableArchive property's value to true if you// want to make playback available immediately after the broadcast ends.EnableDvrbool `json:"enableDvr,omitempty"`// EnableEmbed: This setting indicates whether the broadcast video can be// played in an embedded player. If you choose to archive the video (using the// enableArchive property), this setting will also apply to the archived video.EnableEmbedbool `json:"enableEmbed,omitempty"`// EnableLowLatency: Indicates whether this broadcast has low latency enabled.EnableLowLatencybool `json:"enableLowLatency,omitempty"`// LatencyPreference: If both this and enable_low_latency are set, they must// match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW// should match enable_low_latency=true LATENCY_ULTRA_LOW should have// enable_low_latency omitted.//// Possible values:// "latencyPreferenceUnspecified"// "normal" - Best for: highest quality viewer playbacks and higher// resolutions.// "low" - Best for: near real-time interaction, with minimal playback// buffering.// "ultraLow" - Best for: real-time interaction Does not support: Closed// captions, 1440p, and 4k resolutionsLatencyPreferencestring `json:"latencyPreference,omitempty"`// Mesh: The mesh for projecting the video if projection is mesh. The mesh// value must be a UTF-8 string containing the base-64 encoding of 3D mesh data// that follows the Spherical Video V2 RFC specification for an mshp box,// excluding the box size and type but including the following four reserved// zero bytes for the version and flags.Meshstring `json:"mesh,omitempty"`// MonitorStream: The monitorStream object contains information about the// monitor stream, which the broadcaster can use to review the event content// before the broadcast stream is shown publicly.MonitorStream *MonitorStreamInfo `json:"monitorStream,omitempty"`// Projection: The projection format of this broadcast. This defaults to// rectangular.//// Possible values:// "projectionUnspecified"// "rectangular"// "360"// "mesh"Projectionstring `json:"projection,omitempty"`// RecordFromStart: Automatically start recording after the event goes live.// The default value for this property is true. *Important:* You must also set// the enableDvr property's value to true if you want the playback to be// available immediately after the broadcast ends. If you set this property's// value to true but do not also set the enableDvr property to true, there may// be a delay of around one day before the archived video will be available for// playback.RecordFromStartbool `json:"recordFromStart,omitempty"`// StartWithSlate: This setting indicates whether the broadcast should// automatically begin with an in-stream slate when you update the broadcast's// status to live. After updating the status, you then need to send a// liveCuepoints.insert request that sets the cuepoint's eventState to end to// remove the in-stream slate and make your broadcast stream visible to// viewers.StartWithSlatebool `json:"startWithSlate,omitempty"`// StereoLayout: The 3D stereo layout of this broadcast. This defaults to mono.//// Possible values:// "stereoLayoutUnspecified"// "mono"// "leftRight"// "topBottom"StereoLayoutstring `json:"stereoLayout,omitempty"`// ForceSendFields is a list of field names (e.g. "BoundStreamId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BoundStreamId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveBroadcastContentDetails: Detailed settings of a broadcast.
func (LiveBroadcastContentDetails)MarshalJSON¶
func (sLiveBroadcastContentDetails) MarshalJSON() ([]byte,error)
typeLiveBroadcastListResponse¶
type LiveBroadcastListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of broadcasts that match the request criteria.Items []*LiveBroadcast `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#liveBroadcastListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveBroadcastListResponse)MarshalJSON¶
func (sLiveBroadcastListResponse) MarshalJSON() ([]byte,error)
typeLiveBroadcastMonetizationDetails¶added inv0.135.0
type LiveBroadcastMonetizationDetails struct {CuepointSchedule *CuepointSchedule `json:"cuepointSchedule,omitempty"`// ForceSendFields is a list of field names (e.g. "CuepointSchedule") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CuepointSchedule") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveBroadcastMonetizationDetails: Monetization settings of a broadcast.
func (LiveBroadcastMonetizationDetails)MarshalJSON¶added inv0.135.0
func (sLiveBroadcastMonetizationDetails) MarshalJSON() ([]byte,error)
typeLiveBroadcastSnippet¶
type LiveBroadcastSnippet struct {// ActualEndTime: The date and time that the broadcast actually ended. This// information is only available once the broadcast's state is complete.ActualEndTimestring `json:"actualEndTime,omitempty"`// ActualStartTime: The date and time that the broadcast actually started. This// information is only available once the broadcast's state is live.ActualStartTimestring `json:"actualStartTime,omitempty"`// ChannelId: The ID that YouTube uses to uniquely identify the channel that is// publishing the broadcast.ChannelIdstring `json:"channelId,omitempty"`// Description: The broadcast's description. As with the title, you can set// this field by modifying the broadcast resource or by setting the description// field of the corresponding video resource.Descriptionstring `json:"description,omitempty"`// IsDefaultBroadcast: Indicates whether this broadcast is the default// broadcast. Internal only.IsDefaultBroadcastbool `json:"isDefaultBroadcast,omitempty"`// LiveChatId: The id of the live chat for this broadcast.LiveChatIdstring `json:"liveChatId,omitempty"`// PublishedAt: The date and time that the broadcast was added to YouTube's// live broadcast schedule.PublishedAtstring `json:"publishedAt,omitempty"`// ScheduledEndTime: The date and time that the broadcast is scheduled to end.ScheduledEndTimestring `json:"scheduledEndTime,omitempty"`// ScheduledStartTime: The date and time that the broadcast is scheduled to// start.ScheduledStartTimestring `json:"scheduledStartTime,omitempty"`// Thumbnails: A map of thumbnail images associated with the broadcast. For// each nested object in this object, the key is the name of the thumbnail// image, and the value is an object that contains other information about the// thumbnail.Thumbnails *ThumbnailDetails `json:"thumbnails,omitempty"`// Title: The broadcast's title. Note that the broadcast represents exactly one// YouTube video. You can set this field by modifying the broadcast resource or// by setting the title field of the corresponding video resource.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "ActualEndTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActualEndTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveBroadcastSnippet: Basic broadcast information.
func (LiveBroadcastSnippet)MarshalJSON¶
func (sLiveBroadcastSnippet) MarshalJSON() ([]byte,error)
typeLiveBroadcastStatistics¶
type LiveBroadcastStatistics struct {// ConcurrentViewers: The number of viewers currently watching the broadcast.// The property and its value will be present if the broadcast has current// viewers and the broadcast owner has not hidden the viewcount for the video.// Note that YouTube stops tracking the number of concurrent viewers for a// broadcast when the broadcast ends. So, this property would not identify the// number of viewers watching an archived video of a live broadcast that// already ended.ConcurrentViewersuint64 `json:"concurrentViewers,omitempty,string"`// ForceSendFields is a list of field names (e.g. "ConcurrentViewers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConcurrentViewers") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveBroadcastStatistics: Statistics about the live broadcast. Theserepresent a snapshot of the values at the time of the request. Statisticsare only returned for live broadcasts.
func (LiveBroadcastStatistics)MarshalJSON¶
func (sLiveBroadcastStatistics) MarshalJSON() ([]byte,error)
typeLiveBroadcastStatus¶
type LiveBroadcastStatus struct {// LifeCycleStatus: The broadcast's status. The status can be updated using the// API's liveBroadcasts.transition method.//// Possible values:// "lifeCycleStatusUnspecified" - No value or the value is unknown.// "created" - Incomplete settings, but otherwise valid// "ready" - Complete settings// "testing" - Visible only to partner, may need special UI treatment// "live" - Viper is recording; this means the "clock" is running// "complete" - The broadcast is finished.// "revoked" - This broadcast was removed by admin action// "testStarting" - Transition into TESTING has been requested// "liveStarting" - Transition into LIVE has been requestedLifeCycleStatusstring `json:"lifeCycleStatus,omitempty"`// LiveBroadcastPriority: Priority of the live broadcast event (internal// state).//// Possible values:// "liveBroadcastPriorityUnspecified"// "low" - Low priority broadcast: for low view count HoAs or other low// priority broadcasts.// "normal" - Normal priority broadcast: for regular HoAs and broadcasts.// "high" - High priority broadcast: for high profile HoAs, like PixelCorp// ones.LiveBroadcastPrioritystring `json:"liveBroadcastPriority,omitempty"`// MadeForKids: Whether the broadcast is made for kids or not, decided by// YouTube instead of the creator. This field is read only.MadeForKidsbool `json:"madeForKids,omitempty"`// PrivacyStatus: The broadcast's privacy status. Note that the broadcast// represents exactly one YouTube video, so the privacy settings are identical// to those supported for videos. In addition, you can set this field by// modifying the broadcast resource or by setting the privacyStatus field of// the corresponding video resource.//// Possible values:// "public"// "unlisted"// "private"PrivacyStatusstring `json:"privacyStatus,omitempty"`// RecordingStatus: The broadcast's recording status.//// Possible values:// "liveBroadcastRecordingStatusUnspecified" - No value or the value is// unknown.// "notRecording" - The recording has not yet been started.// "recording" - The recording is currently on.// "recorded" - The recording is completed, and cannot be started again.RecordingStatusstring `json:"recordingStatus,omitempty"`// SelfDeclaredMadeForKids: This field will be set to True if the creator// declares the broadcast to be kids only: go/live-cw-work.SelfDeclaredMadeForKidsbool `json:"selfDeclaredMadeForKids,omitempty"`// ForceSendFields is a list of field names (e.g. "LifeCycleStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LifeCycleStatus") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveBroadcastStatus: Live broadcast state.
func (LiveBroadcastStatus)MarshalJSON¶
func (sLiveBroadcastStatus) MarshalJSON() ([]byte,error)
typeLiveBroadcastsBindCall¶
type LiveBroadcastsBindCall struct {// contains filtered or unexported fields}func (*LiveBroadcastsBindCall)Context¶
func (c *LiveBroadcastsBindCall) Context(ctxcontext.Context) *LiveBroadcastsBindCall
Context sets the context to be used in this call's Do method.
func (*LiveBroadcastsBindCall)Do¶
func (c *LiveBroadcastsBindCall) Do(opts ...googleapi.CallOption) (*LiveBroadcast,error)
Do executes the "youtube.liveBroadcasts.bind" call.Any non-2xx status code is an error. Response headers are in either*LiveBroadcast.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LiveBroadcastsBindCall)Fields¶
func (c *LiveBroadcastsBindCall) Fields(s ...googleapi.Field) *LiveBroadcastsBindCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveBroadcastsBindCall)Header¶
func (c *LiveBroadcastsBindCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveBroadcastsBindCall)OnBehalfOfContentOwner¶
func (c *LiveBroadcastsBindCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveBroadcastsBindCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveBroadcastsBindCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveBroadcastsBindCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveBroadcastsBindCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*LiveBroadcastsBindCall)StreamId¶
func (c *LiveBroadcastsBindCall) StreamId(streamIdstring) *LiveBroadcastsBindCall
StreamId sets the optional parameter "streamId": Stream to bind, if not setunbind the current one.
typeLiveBroadcastsDeleteCall¶
type LiveBroadcastsDeleteCall struct {// contains filtered or unexported fields}func (*LiveBroadcastsDeleteCall)Context¶
func (c *LiveBroadcastsDeleteCall) Context(ctxcontext.Context) *LiveBroadcastsDeleteCall
Context sets the context to be used in this call's Do method.
func (*LiveBroadcastsDeleteCall)Do¶
func (c *LiveBroadcastsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.liveBroadcasts.delete" call.
func (*LiveBroadcastsDeleteCall)Fields¶
func (c *LiveBroadcastsDeleteCall) Fields(s ...googleapi.Field) *LiveBroadcastsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveBroadcastsDeleteCall)Header¶
func (c *LiveBroadcastsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveBroadcastsDeleteCall)OnBehalfOfContentOwner¶
func (c *LiveBroadcastsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveBroadcastsDeleteCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveBroadcastsDeleteCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveBroadcastsDeleteCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveBroadcastsDeleteCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
typeLiveBroadcastsInsertCall¶
type LiveBroadcastsInsertCall struct {// contains filtered or unexported fields}func (*LiveBroadcastsInsertCall)Context¶
func (c *LiveBroadcastsInsertCall) Context(ctxcontext.Context) *LiveBroadcastsInsertCall
Context sets the context to be used in this call's Do method.
func (*LiveBroadcastsInsertCall)Do¶
func (c *LiveBroadcastsInsertCall) Do(opts ...googleapi.CallOption) (*LiveBroadcast,error)
Do executes the "youtube.liveBroadcasts.insert" call.Any non-2xx status code is an error. Response headers are in either*LiveBroadcast.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LiveBroadcastsInsertCall)Fields¶
func (c *LiveBroadcastsInsertCall) Fields(s ...googleapi.Field) *LiveBroadcastsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveBroadcastsInsertCall)Header¶
func (c *LiveBroadcastsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveBroadcastsInsertCall)OnBehalfOfContentOwner¶
func (c *LiveBroadcastsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveBroadcastsInsertCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveBroadcastsInsertCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveBroadcastsInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveBroadcastsInsertCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
typeLiveBroadcastsInsertCuepointCall¶added inv0.87.0
type LiveBroadcastsInsertCuepointCall struct {// contains filtered or unexported fields}func (*LiveBroadcastsInsertCuepointCall)Context¶added inv0.87.0
func (c *LiveBroadcastsInsertCuepointCall) Context(ctxcontext.Context) *LiveBroadcastsInsertCuepointCall
Context sets the context to be used in this call's Do method.
func (*LiveBroadcastsInsertCuepointCall)Do¶added inv0.87.0
func (c *LiveBroadcastsInsertCuepointCall) Do(opts ...googleapi.CallOption) (*Cuepoint,error)
Do executes the "youtube.liveBroadcasts.insertCuepoint" call.Any non-2xx status code is an error. Response headers are in either*Cuepoint.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LiveBroadcastsInsertCuepointCall)Fields¶added inv0.87.0
func (c *LiveBroadcastsInsertCuepointCall) Fields(s ...googleapi.Field) *LiveBroadcastsInsertCuepointCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveBroadcastsInsertCuepointCall)Header¶added inv0.87.0
func (c *LiveBroadcastsInsertCuepointCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveBroadcastsInsertCuepointCall)Id¶added inv0.87.0
func (c *LiveBroadcastsInsertCuepointCall) Id(idstring) *LiveBroadcastsInsertCuepointCall
Id sets the optional parameter "id": Broadcast to insert ads to, orequivalently `external_video_id` for internal use.
func (*LiveBroadcastsInsertCuepointCall)OnBehalfOfContentOwner¶added inv0.87.0
func (c *LiveBroadcastsInsertCuepointCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveBroadcastsInsertCuepointCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveBroadcastsInsertCuepointCall)OnBehalfOfContentOwnerChannel¶added inv0.87.0
func (c *LiveBroadcastsInsertCuepointCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveBroadcastsInsertCuepointCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*LiveBroadcastsInsertCuepointCall)Part¶added inv0.87.0
func (c *LiveBroadcastsInsertCuepointCall) Part(part ...string) *LiveBroadcastsInsertCuepointCall
Part sets the optional parameter "part": The *part* parameter specifies acomma-separated list of one or more liveBroadcast resource properties thatthe API response will include. The part names that you can include in theparameter value are id, snippet, contentDetails, and status.
typeLiveBroadcastsListCall¶
type LiveBroadcastsListCall struct {// contains filtered or unexported fields}func (*LiveBroadcastsListCall)BroadcastStatus¶
func (c *LiveBroadcastsListCall) BroadcastStatus(broadcastStatusstring) *LiveBroadcastsListCall
BroadcastStatus sets the optional parameter "broadcastStatus": Returnbroadcasts with a certain status, e.g. active broadcasts.
Possible values:
"broadcastStatusFilterUnspecified""all" - Return all broadcasts."active" - Return current live broadcasts."upcoming" - Return broadcasts that have not yet started."completed" - Return broadcasts that have already ended.
func (*LiveBroadcastsListCall)BroadcastType¶
func (c *LiveBroadcastsListCall) BroadcastType(broadcastTypestring) *LiveBroadcastsListCall
BroadcastType sets the optional parameter "broadcastType": Return onlybroadcasts with the selected type.
Possible values:
"broadcastTypeFilterUnspecified""all" - Return all broadcasts."event" (default) - Return only scheduled event broadcasts."persistent" - Return only persistent broadcasts.
func (*LiveBroadcastsListCall)Context¶
func (c *LiveBroadcastsListCall) Context(ctxcontext.Context) *LiveBroadcastsListCall
Context sets the context to be used in this call's Do method.
func (*LiveBroadcastsListCall)Do¶
func (c *LiveBroadcastsListCall) Do(opts ...googleapi.CallOption) (*LiveBroadcastListResponse,error)
Do executes the "youtube.liveBroadcasts.list" call.Any non-2xx status code is an error. Response headers are in either*LiveBroadcastListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LiveBroadcastsListCall)Fields¶
func (c *LiveBroadcastsListCall) Fields(s ...googleapi.Field) *LiveBroadcastsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveBroadcastsListCall)Header¶
func (c *LiveBroadcastsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveBroadcastsListCall)Id¶
func (c *LiveBroadcastsListCall) Id(id ...string) *LiveBroadcastsListCall
Id sets the optional parameter "id": Return broadcasts with the given idsfrom Stubby or Apiary.
func (*LiveBroadcastsListCall)IfNoneMatch¶
func (c *LiveBroadcastsListCall) IfNoneMatch(entityTagstring) *LiveBroadcastsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LiveBroadcastsListCall)MaxResults¶
func (c *LiveBroadcastsListCall) MaxResults(maxResultsint64) *LiveBroadcastsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*LiveBroadcastsListCall)Mine¶
func (c *LiveBroadcastsListCall) Mine(minebool) *LiveBroadcastsListCall
Mine sets the optional parameter "mine":
func (*LiveBroadcastsListCall)OnBehalfOfContentOwner¶
func (c *LiveBroadcastsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveBroadcastsListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveBroadcastsListCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveBroadcastsListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveBroadcastsListCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*LiveBroadcastsListCall)PageToken¶
func (c *LiveBroadcastsListCall) PageToken(pageTokenstring) *LiveBroadcastsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*LiveBroadcastsListCall)Pages¶
func (c *LiveBroadcastsListCall) Pages(ctxcontext.Context, f func(*LiveBroadcastListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeLiveBroadcastsService¶
type LiveBroadcastsService struct {// contains filtered or unexported fields}funcNewLiveBroadcastsService¶
func NewLiveBroadcastsService(s *Service) *LiveBroadcastsService
func (*LiveBroadcastsService)Bind¶
func (r *LiveBroadcastsService) Bind(idstring, part []string) *LiveBroadcastsBindCall
Bind: Bind a broadcast to a stream.
- id: Broadcast to bind to the stream.
- part: The *part* parameter specifies a comma-separated list of one or moreliveBroadcast resource properties that the API response will include. Thepart names that you can include in the parameter value are id, snippet,contentDetails, and status.
func (*LiveBroadcastsService)Delete¶
func (r *LiveBroadcastsService) Delete(idstring) *LiveBroadcastsDeleteCall
Delete: Delete a given broadcast.
- id: Broadcast to delete.
func (*LiveBroadcastsService)Insert¶
func (r *LiveBroadcastsService) Insert(part []string, livebroadcast *LiveBroadcast) *LiveBroadcastsInsertCall
Insert: Inserts a new stream for the authenticated user.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. The part properties thatyou can include in the parameter value are id, snippet, contentDetails,and status.
func (*LiveBroadcastsService)InsertCuepoint¶added inv0.87.0
func (r *LiveBroadcastsService) InsertCuepoint(cuepoint *Cuepoint) *LiveBroadcastsInsertCuepointCall
InsertCuepoint: Insert cuepoints in a broadcast
func (*LiveBroadcastsService)List¶
func (r *LiveBroadcastsService) List(part []string) *LiveBroadcastsListCall
List: Retrieve the list of broadcasts associated with the given channel.
- part: The *part* parameter specifies a comma-separated list of one or moreliveBroadcast resource properties that the API response will include. Thepart names that you can include in the parameter value are id, snippet,contentDetails, status and statistics.
func (*LiveBroadcastsService)Transition¶
func (r *LiveBroadcastsService) Transition(broadcastStatusstring, idstring, part []string) *LiveBroadcastsTransitionCall
Transition: Transition a broadcast to a given status.
- broadcastStatus: The status to which the broadcast is going to transition.
- id: Broadcast to transition.
- part: The *part* parameter specifies a comma-separated list of one or moreliveBroadcast resource properties that the API response will include. Thepart names that you can include in the parameter value are id, snippet,contentDetails, and status.
func (*LiveBroadcastsService)Update¶
func (r *LiveBroadcastsService) Update(part []string, livebroadcast *LiveBroadcast) *LiveBroadcastsUpdateCall
Update: Updates an existing broadcast for the authenticated user.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. The part properties thatyou can include in the parameter value are id, snippet, contentDetails,and status. Note that this method will override the existing values forall of the mutable properties that are contained in any parts that theparameter value specifies. For example, a broadcast's privacy status isdefined in the status part. As such, if your request is updating a privateor unlisted broadcast, and the request's part parameter value includes thestatus part, the broadcast's privacy setting will be updated to whatevervalue the request body specifies. If the request body does not specify avalue, the existing privacy setting will be removed and the broadcast willrevert to the default privacy setting.
typeLiveBroadcastsTransitionCall¶
type LiveBroadcastsTransitionCall struct {// contains filtered or unexported fields}func (*LiveBroadcastsTransitionCall)Context¶
func (c *LiveBroadcastsTransitionCall) Context(ctxcontext.Context) *LiveBroadcastsTransitionCall
Context sets the context to be used in this call's Do method.
func (*LiveBroadcastsTransitionCall)Do¶
func (c *LiveBroadcastsTransitionCall) Do(opts ...googleapi.CallOption) (*LiveBroadcast,error)
Do executes the "youtube.liveBroadcasts.transition" call.Any non-2xx status code is an error. Response headers are in either*LiveBroadcast.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LiveBroadcastsTransitionCall)Fields¶
func (c *LiveBroadcastsTransitionCall) Fields(s ...googleapi.Field) *LiveBroadcastsTransitionCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveBroadcastsTransitionCall)Header¶
func (c *LiveBroadcastsTransitionCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveBroadcastsTransitionCall)OnBehalfOfContentOwner¶
func (c *LiveBroadcastsTransitionCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveBroadcastsTransitionCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveBroadcastsTransitionCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveBroadcastsTransitionCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveBroadcastsTransitionCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
typeLiveBroadcastsUpdateCall¶
type LiveBroadcastsUpdateCall struct {// contains filtered or unexported fields}func (*LiveBroadcastsUpdateCall)Context¶
func (c *LiveBroadcastsUpdateCall) Context(ctxcontext.Context) *LiveBroadcastsUpdateCall
Context sets the context to be used in this call's Do method.
func (*LiveBroadcastsUpdateCall)Do¶
func (c *LiveBroadcastsUpdateCall) Do(opts ...googleapi.CallOption) (*LiveBroadcast,error)
Do executes the "youtube.liveBroadcasts.update" call.Any non-2xx status code is an error. Response headers are in either*LiveBroadcast.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LiveBroadcastsUpdateCall)Fields¶
func (c *LiveBroadcastsUpdateCall) Fields(s ...googleapi.Field) *LiveBroadcastsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveBroadcastsUpdateCall)Header¶
func (c *LiveBroadcastsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveBroadcastsUpdateCall)OnBehalfOfContentOwner¶
func (c *LiveBroadcastsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveBroadcastsUpdateCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveBroadcastsUpdateCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveBroadcastsUpdateCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveBroadcastsUpdateCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
typeLiveChatBan¶
type LiveChatBan struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube assigns to uniquely identify the ban.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#liveChatBan".Kindstring `json:"kind,omitempty"`// Snippet: The `snippet` object contains basic details about the ban.Snippet *LiveChatBanSnippet `json:"snippet,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveChatBan: A `__liveChatBan__` resource represents a ban for a YouTubelive chat.
func (LiveChatBan)MarshalJSON¶
func (sLiveChatBan) MarshalJSON() ([]byte,error)
typeLiveChatBanSnippet¶
type LiveChatBanSnippet struct {// BanDurationSeconds: The duration of a ban, only filled if the ban has type// TEMPORARY.BanDurationSecondsuint64 `json:"banDurationSeconds,omitempty,string"`BannedUserDetails *ChannelProfileDetails `json:"bannedUserDetails,omitempty"`// LiveChatId: The chat this ban is pertinent to.LiveChatIdstring `json:"liveChatId,omitempty"`// Type: The type of ban.//// Possible values:// "liveChatBanTypeUnspecified" - An invalid ban type.// "permanent" - A permanent ban.// "temporary" - A temporary ban.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "BanDurationSeconds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BanDurationSeconds") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatBanSnippet)MarshalJSON¶
func (sLiveChatBanSnippet) MarshalJSON() ([]byte,error)
typeLiveChatBansDeleteCall¶
type LiveChatBansDeleteCall struct {// contains filtered or unexported fields}func (*LiveChatBansDeleteCall)Context¶
func (c *LiveChatBansDeleteCall) Context(ctxcontext.Context) *LiveChatBansDeleteCall
Context sets the context to be used in this call's Do method.
func (*LiveChatBansDeleteCall)Do¶
func (c *LiveChatBansDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.liveChatBans.delete" call.
func (*LiveChatBansDeleteCall)Fields¶
func (c *LiveChatBansDeleteCall) Fields(s ...googleapi.Field) *LiveChatBansDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveChatBansDeleteCall)Header¶
func (c *LiveChatBansDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLiveChatBansInsertCall¶
type LiveChatBansInsertCall struct {// contains filtered or unexported fields}func (*LiveChatBansInsertCall)Context¶
func (c *LiveChatBansInsertCall) Context(ctxcontext.Context) *LiveChatBansInsertCall
Context sets the context to be used in this call's Do method.
func (*LiveChatBansInsertCall)Do¶
func (c *LiveChatBansInsertCall) Do(opts ...googleapi.CallOption) (*LiveChatBan,error)
Do executes the "youtube.liveChatBans.insert" call.Any non-2xx status code is an error. Response headers are in either*LiveChatBan.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LiveChatBansInsertCall)Fields¶
func (c *LiveChatBansInsertCall) Fields(s ...googleapi.Field) *LiveChatBansInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveChatBansInsertCall)Header¶
func (c *LiveChatBansInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLiveChatBansService¶
type LiveChatBansService struct {// contains filtered or unexported fields}funcNewLiveChatBansService¶
func NewLiveChatBansService(s *Service) *LiveChatBansService
func (*LiveChatBansService)Delete¶
func (r *LiveChatBansService) Delete(idstring) *LiveChatBansDeleteCall
Delete: Deletes a chat ban.
- id: .
func (*LiveChatBansService)Insert¶
func (r *LiveChatBansService) Insert(part []string, livechatban *LiveChatBan) *LiveChatBansInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response returns. Set the parameter value tosnippet.
typeLiveChatFanFundingEventDetails¶
type LiveChatFanFundingEventDetails struct {// AmountDisplayString: A rendered string that displays the fund amount and// currency to the user.AmountDisplayStringstring `json:"amountDisplayString,omitempty"`// AmountMicros: The amount of the fund.AmountMicrosuint64 `json:"amountMicros,omitempty,string"`// Currency: The currency in which the fund was made.Currencystring `json:"currency,omitempty"`// UserComment: The comment added by the user to this fan funding event.UserCommentstring `json:"userComment,omitempty"`// ForceSendFields is a list of field names (e.g. "AmountDisplayString") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AmountDisplayString") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatFanFundingEventDetails)MarshalJSON¶
func (sLiveChatFanFundingEventDetails) MarshalJSON() ([]byte,error)
typeLiveChatGiftMembershipReceivedDetails¶added inv0.73.0
type LiveChatGiftMembershipReceivedDetails struct {// AssociatedMembershipGiftingMessageId: The ID of the membership gifting// message that is related to this gift membership. This ID will always refer// to a message whose type is 'membershipGiftingEvent'.AssociatedMembershipGiftingMessageIdstring `json:"associatedMembershipGiftingMessageId,omitempty"`// GifterChannelId: The ID of the user that made the membership gifting// purchase. This matches the `snippet.authorChannelId` of the associated// membership gifting message.GifterChannelIdstring `json:"gifterChannelId,omitempty"`// MemberLevelName: The name of the Level at which the viewer is a member. This// matches the `snippet.membershipGiftingDetails.giftMembershipsLevelName` of// the associated membership gifting message. The Level names are defined by// the YouTube channel offering the Membership. In some situations this field// isn't filled.MemberLevelNamestring `json:"memberLevelName,omitempty"`// ForceSendFields is a list of field names (e.g.// "AssociatedMembershipGiftingMessageId") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "AssociatedMembershipGiftingMessageId") to include in API requests with the// JSON null value. By default, fields with empty values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-NullFields for// more details.NullFields []string `json:"-"`}func (LiveChatGiftMembershipReceivedDetails)MarshalJSON¶added inv0.73.0
func (sLiveChatGiftMembershipReceivedDetails) MarshalJSON() ([]byte,error)
typeLiveChatMemberMilestoneChatDetails¶added inv0.56.0
type LiveChatMemberMilestoneChatDetails struct {// MemberLevelName: The name of the Level at which the viever is a member. The// Level names are defined by the YouTube channel offering the Membership. In// some situations this field isn't filled.MemberLevelNamestring `json:"memberLevelName,omitempty"`// MemberMonth: The total amount of months (rounded up) the viewer has been a// member that granted them this Member Milestone Chat. This is the same number// of months as is being displayed to YouTube users.MemberMonthint64 `json:"memberMonth,omitempty"`// UserComment: The comment added by the member to this Member Milestone Chat.// This field is empty for messages without a comment from the member.UserCommentstring `json:"userComment,omitempty"`// ForceSendFields is a list of field names (e.g. "MemberLevelName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MemberLevelName") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatMemberMilestoneChatDetails)MarshalJSON¶added inv0.56.0
func (sLiveChatMemberMilestoneChatDetails) MarshalJSON() ([]byte,error)
typeLiveChatMembershipGiftingDetails¶added inv0.73.0
type LiveChatMembershipGiftingDetails struct {// GiftMembershipsCount: The number of gift memberships purchased by the user.GiftMembershipsCountint64 `json:"giftMembershipsCount,omitempty"`// GiftMembershipsLevelName: The name of the level of the gift memberships// purchased by the user. The Level names are defined by the YouTube channel// offering the Membership. In some situations this field isn't filled.GiftMembershipsLevelNamestring `json:"giftMembershipsLevelName,omitempty"`// ForceSendFields is a list of field names (e.g. "GiftMembershipsCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GiftMembershipsCount") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatMembershipGiftingDetails)MarshalJSON¶added inv0.73.0
func (sLiveChatMembershipGiftingDetails) MarshalJSON() ([]byte,error)
typeLiveChatMessage¶
type LiveChatMessage struct {// AuthorDetails: The authorDetails object contains basic details about the// user that posted this message.AuthorDetails *LiveChatMessageAuthorDetails `json:"authorDetails,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube assigns to uniquely identify the message.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#liveChatMessage".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the message.Snippet *LiveChatMessageSnippet `json:"snippet,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AuthorDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuthorDetails") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveChatMessage: A *liveChatMessage* resource represents a chat message in aYouTube Live Chat.
func (LiveChatMessage)MarshalJSON¶
func (sLiveChatMessage) MarshalJSON() ([]byte,error)
typeLiveChatMessageAuthorDetails¶
type LiveChatMessageAuthorDetails struct {// ChannelId: The YouTube channel ID.ChannelIdstring `json:"channelId,omitempty"`// ChannelUrl: The channel's URL.ChannelUrlstring `json:"channelUrl,omitempty"`// DisplayName: The channel's display name.DisplayNamestring `json:"displayName,omitempty"`// IsChatModerator: Whether the author is a moderator of the live chat.IsChatModeratorbool `json:"isChatModerator,omitempty"`// IsChatOwner: Whether the author is the owner of the live chat.IsChatOwnerbool `json:"isChatOwner,omitempty"`// IsChatSponsor: Whether the author is a sponsor of the live chat.IsChatSponsorbool `json:"isChatSponsor,omitempty"`// IsVerified: Whether the author's identity has been verified by YouTube.IsVerifiedbool `json:"isVerified,omitempty"`// ProfileImageUrl: The channels's avatar URL.ProfileImageUrlstring `json:"profileImageUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatMessageAuthorDetails)MarshalJSON¶
func (sLiveChatMessageAuthorDetails) MarshalJSON() ([]byte,error)
typeLiveChatMessageDeletedDetails¶
type LiveChatMessageDeletedDetails struct {DeletedMessageIdstring `json:"deletedMessageId,omitempty"`// ForceSendFields is a list of field names (e.g. "DeletedMessageId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeletedMessageId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatMessageDeletedDetails)MarshalJSON¶
func (sLiveChatMessageDeletedDetails) MarshalJSON() ([]byte,error)
typeLiveChatMessageListResponse¶
type LiveChatMessageListResponse struct {// ActivePollItem: Set when there is an active poll.ActivePollItem *LiveChatMessage `json:"activePollItem,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`Items []*LiveChatMessage `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#liveChatMessageListResponse".Kindstring `json:"kind,omitempty"`NextPageTokenstring `json:"nextPageToken,omitempty"`// OfflineAt: The date and time when the underlying stream went offline.OfflineAtstring `json:"offlineAt,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PollingIntervalMillis: The amount of time the client should wait before// polling again.PollingIntervalMillisint64 `json:"pollingIntervalMillis,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ActivePollItem") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActivePollItem") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatMessageListResponse)MarshalJSON¶
func (sLiveChatMessageListResponse) MarshalJSON() ([]byte,error)
typeLiveChatMessageRetractedDetails¶
type LiveChatMessageRetractedDetails struct {RetractedMessageIdstring `json:"retractedMessageId,omitempty"`// ForceSendFields is a list of field names (e.g. "RetractedMessageId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RetractedMessageId") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatMessageRetractedDetails)MarshalJSON¶
func (sLiveChatMessageRetractedDetails) MarshalJSON() ([]byte,error)
typeLiveChatMessageSnippet¶
type LiveChatMessageSnippet struct {// AuthorChannelId: The ID of the user that authored this message, this field// is not always filled. textMessageEvent - the user that wrote the message// fanFundingEvent - the user that funded the broadcast newSponsorEvent - the// user that just became a sponsor memberMilestoneChatEvent - the member that// sent the message membershipGiftingEvent - the user that made the purchase// giftMembershipReceivedEvent - the user that received the gift membership// messageDeletedEvent - the moderator that took the action// messageRetractedEvent - the author that retracted their message// userBannedEvent - the moderator that took the action superChatEvent - the// user that made the purchase superStickerEvent - the user that made the// purchase pollEvent - the user that created the pollAuthorChannelIdstring `json:"authorChannelId,omitempty"`// DisplayMessage: Contains a string that can be displayed to the user. If this// field is not present the message is silent, at the moment only messages of// type TOMBSTONE and CHAT_ENDED_EVENT are silent.DisplayMessagestring `json:"displayMessage,omitempty"`// FanFundingEventDetails: Details about the funding event, this is only set if// the type is 'fanFundingEvent'.FanFundingEventDetails *LiveChatFanFundingEventDetails `json:"fanFundingEventDetails,omitempty"`// GiftMembershipReceivedDetails: Details about the Gift Membership Received// event, this is only set if the type is 'giftMembershipReceivedEvent'.GiftMembershipReceivedDetails *LiveChatGiftMembershipReceivedDetails `json:"giftMembershipReceivedDetails,omitempty"`// HasDisplayContent: Whether the message has display content that should be// displayed to users.HasDisplayContentbool `json:"hasDisplayContent,omitempty"`LiveChatIdstring `json:"liveChatId,omitempty"`// MemberMilestoneChatDetails: Details about the Member Milestone Chat event,// this is only set if the type is 'memberMilestoneChatEvent'.MemberMilestoneChatDetails *LiveChatMemberMilestoneChatDetails `json:"memberMilestoneChatDetails,omitempty"`// MembershipGiftingDetails: Details about the Membership Gifting event, this// is only set if the type is 'membershipGiftingEvent'.MembershipGiftingDetails *LiveChatMembershipGiftingDetails `json:"membershipGiftingDetails,omitempty"`MessageDeletedDetails *LiveChatMessageDeletedDetails `json:"messageDeletedDetails,omitempty"`MessageRetractedDetails *LiveChatMessageRetractedDetails `json:"messageRetractedDetails,omitempty"`// NewSponsorDetails: Details about the New Member Announcement event, this is// only set if the type is 'newSponsorEvent'. Please note that "member" is the// new term for "sponsor".NewSponsorDetails *LiveChatNewSponsorDetails `json:"newSponsorDetails,omitempty"`// PollDetails: Details about the poll event, this is only set if the type is// 'pollEvent'.PollDetails *LiveChatPollDetails `json:"pollDetails,omitempty"`// PublishedAt: The date and time when the message was orignally published.PublishedAtstring `json:"publishedAt,omitempty"`// SuperChatDetails: Details about the Super Chat event, this is only set if// the type is 'superChatEvent'.SuperChatDetails *LiveChatSuperChatDetails `json:"superChatDetails,omitempty"`// SuperStickerDetails: Details about the Super Sticker event, this is only set// if the type is 'superStickerEvent'.SuperStickerDetails *LiveChatSuperStickerDetails `json:"superStickerDetails,omitempty"`// TextMessageDetails: Details about the text message, this is only set if the// type is 'textMessageEvent'.TextMessageDetails *LiveChatTextMessageDetails `json:"textMessageDetails,omitempty"`// Type: The type of message, this will always be present, it determines the// contents of the message as well as which fields will be present.//// Possible values:// "invalidType"// "textMessageEvent"// "tombstone"// "fanFundingEvent"// "chatEndedEvent"// "sponsorOnlyModeStartedEvent"// "sponsorOnlyModeEndedEvent"// "newSponsorEvent"// "memberMilestoneChatEvent"// "membershipGiftingEvent"// "giftMembershipReceivedEvent"// "messageDeletedEvent"// "messageRetractedEvent"// "userBannedEvent"// "superChatEvent"// "superStickerEvent"// "pollEvent"Typestring `json:"type,omitempty"`UserBannedDetails *LiveChatUserBannedMessageDetails `json:"userBannedDetails,omitempty"`// ForceSendFields is a list of field names (e.g. "AuthorChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuthorChannelId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveChatMessageSnippet: Next ID: 34
func (LiveChatMessageSnippet)MarshalJSON¶
func (sLiveChatMessageSnippet) MarshalJSON() ([]byte,error)
typeLiveChatMessagesDeleteCall¶
type LiveChatMessagesDeleteCall struct {// contains filtered or unexported fields}func (*LiveChatMessagesDeleteCall)Context¶
func (c *LiveChatMessagesDeleteCall) Context(ctxcontext.Context) *LiveChatMessagesDeleteCall
Context sets the context to be used in this call's Do method.
func (*LiveChatMessagesDeleteCall)Do¶
func (c *LiveChatMessagesDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.liveChatMessages.delete" call.
func (*LiveChatMessagesDeleteCall)Fields¶
func (c *LiveChatMessagesDeleteCall) Fields(s ...googleapi.Field) *LiveChatMessagesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveChatMessagesDeleteCall)Header¶
func (c *LiveChatMessagesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLiveChatMessagesInsertCall¶
type LiveChatMessagesInsertCall struct {// contains filtered or unexported fields}func (*LiveChatMessagesInsertCall)Context¶
func (c *LiveChatMessagesInsertCall) Context(ctxcontext.Context) *LiveChatMessagesInsertCall
Context sets the context to be used in this call's Do method.
func (*LiveChatMessagesInsertCall)Do¶
func (c *LiveChatMessagesInsertCall) Do(opts ...googleapi.CallOption) (*LiveChatMessage,error)
Do executes the "youtube.liveChatMessages.insert" call.Any non-2xx status code is an error. Response headers are in either*LiveChatMessage.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*LiveChatMessagesInsertCall)Fields¶
func (c *LiveChatMessagesInsertCall) Fields(s ...googleapi.Field) *LiveChatMessagesInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveChatMessagesInsertCall)Header¶
func (c *LiveChatMessagesInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLiveChatMessagesListCall¶
type LiveChatMessagesListCall struct {// contains filtered or unexported fields}func (*LiveChatMessagesListCall)Context¶
func (c *LiveChatMessagesListCall) Context(ctxcontext.Context) *LiveChatMessagesListCall
Context sets the context to be used in this call's Do method.
func (*LiveChatMessagesListCall)Do¶
func (c *LiveChatMessagesListCall) Do(opts ...googleapi.CallOption) (*LiveChatMessageListResponse,error)
Do executes the "youtube.liveChatMessages.list" call.Any non-2xx status code is an error. Response headers are in either*LiveChatMessageListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LiveChatMessagesListCall)Fields¶
func (c *LiveChatMessagesListCall) Fields(s ...googleapi.Field) *LiveChatMessagesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveChatMessagesListCall)Header¶
func (c *LiveChatMessagesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveChatMessagesListCall)Hl¶
func (c *LiveChatMessagesListCall) Hl(hlstring) *LiveChatMessagesListCall
Hl sets the optional parameter "hl": Specifies the localization language inwhich the system messages should be returned.
func (*LiveChatMessagesListCall)IfNoneMatch¶
func (c *LiveChatMessagesListCall) IfNoneMatch(entityTagstring) *LiveChatMessagesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LiveChatMessagesListCall)MaxResults¶
func (c *LiveChatMessagesListCall) MaxResults(maxResultsint64) *LiveChatMessagesListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set. Not used in the streaming RPC.
func (*LiveChatMessagesListCall)PageToken¶
func (c *LiveChatMessagesListCall) PageToken(pageTokenstring) *LiveChatMessagesListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken property identify other pages that could beretrieved.
func (*LiveChatMessagesListCall)Pages¶
func (c *LiveChatMessagesListCall) Pages(ctxcontext.Context, f func(*LiveChatMessageListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*LiveChatMessagesListCall)ProfileImageSize¶
func (c *LiveChatMessagesListCall) ProfileImageSize(profileImageSizeint64) *LiveChatMessagesListCall
ProfileImageSize sets the optional parameter "profileImageSize": Specifiesthe size of the profile image that should be returned for each user.
typeLiveChatMessagesService¶
type LiveChatMessagesService struct {// contains filtered or unexported fields}funcNewLiveChatMessagesService¶
func NewLiveChatMessagesService(s *Service) *LiveChatMessagesService
func (*LiveChatMessagesService)Delete¶
func (r *LiveChatMessagesService) Delete(idstring) *LiveChatMessagesDeleteCall
Delete: Deletes a chat message.
- id: .
func (*LiveChatMessagesService)Insert¶
func (r *LiveChatMessagesService) Insert(part []string, livechatmessage *LiveChatMessage) *LiveChatMessagesInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter serves two purposes. It identifies theproperties that the write operation will set as well as the propertiesthat the API response will include. Set the parameter value to snippet.
func (*LiveChatMessagesService)List¶
func (r *LiveChatMessagesService) List(liveChatIdstring, part []string) *LiveChatMessagesListCall
List: Retrieves a list of resources, possibly filtered.
- liveChatId: The id of the live chat for which comments should be returned.
- part: The *part* parameter specifies the liveChatComment resource partsthat the API response will include. Supported values are id, snippet, andauthorDetails.
func (*LiveChatMessagesService)Transition¶added inv0.181.0
func (r *LiveChatMessagesService) Transition() *LiveChatMessagesTransitionCall
Transition: Transition a durable chat event.
typeLiveChatMessagesTransitionCall¶added inv0.181.0
type LiveChatMessagesTransitionCall struct {// contains filtered or unexported fields}func (*LiveChatMessagesTransitionCall)Context¶added inv0.181.0
func (c *LiveChatMessagesTransitionCall) Context(ctxcontext.Context) *LiveChatMessagesTransitionCall
Context sets the context to be used in this call's Do method.
func (*LiveChatMessagesTransitionCall)Do¶added inv0.181.0
func (c *LiveChatMessagesTransitionCall) Do(opts ...googleapi.CallOption) (*LiveChatMessage,error)
Do executes the "youtube.liveChatMessages.transition" call.Any non-2xx status code is an error. Response headers are in either*LiveChatMessage.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*LiveChatMessagesTransitionCall)Fields¶added inv0.181.0
func (c *LiveChatMessagesTransitionCall) Fields(s ...googleapi.Field) *LiveChatMessagesTransitionCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveChatMessagesTransitionCall)Header¶added inv0.181.0
func (c *LiveChatMessagesTransitionCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveChatMessagesTransitionCall)Id¶added inv0.181.0
func (c *LiveChatMessagesTransitionCall) Id(idstring) *LiveChatMessagesTransitionCall
Id sets the optional parameter "id": The ID that uniquely identify the chatmessage event to transition.
func (*LiveChatMessagesTransitionCall)Status¶added inv0.181.0
func (c *LiveChatMessagesTransitionCall) Status(statusstring) *LiveChatMessagesTransitionCall
Status sets the optional parameter "status": The status to which the chatevent is going to transition.
Possible values:
"statusUnspecified" - Default unknown enum value."closed" - The durable chat event is over.
typeLiveChatModerator¶
type LiveChatModerator struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube assigns to uniquely identify the moderator.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#liveChatModerator".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the moderator.Snippet *LiveChatModeratorSnippet `json:"snippet,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveChatModerator: A *liveChatModerator* resource represents a moderator fora YouTube live chat. A chat moderator has the ability to ban/unban usersfrom a chat, remove message, etc.
func (LiveChatModerator)MarshalJSON¶
func (sLiveChatModerator) MarshalJSON() ([]byte,error)
typeLiveChatModeratorListResponse¶
type LiveChatModeratorListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of moderators that match the request criteria.Items []*LiveChatModerator `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#liveChatModeratorListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatModeratorListResponse)MarshalJSON¶
func (sLiveChatModeratorListResponse) MarshalJSON() ([]byte,error)
typeLiveChatModeratorSnippet¶
type LiveChatModeratorSnippet struct {// LiveChatId: The ID of the live chat this moderator can act on.LiveChatIdstring `json:"liveChatId,omitempty"`// ModeratorDetails: Details about the moderator.ModeratorDetails *ChannelProfileDetails `json:"moderatorDetails,omitempty"`// ForceSendFields is a list of field names (e.g. "LiveChatId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LiveChatId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatModeratorSnippet)MarshalJSON¶
func (sLiveChatModeratorSnippet) MarshalJSON() ([]byte,error)
typeLiveChatModeratorsDeleteCall¶
type LiveChatModeratorsDeleteCall struct {// contains filtered or unexported fields}func (*LiveChatModeratorsDeleteCall)Context¶
func (c *LiveChatModeratorsDeleteCall) Context(ctxcontext.Context) *LiveChatModeratorsDeleteCall
Context sets the context to be used in this call's Do method.
func (*LiveChatModeratorsDeleteCall)Do¶
func (c *LiveChatModeratorsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.liveChatModerators.delete" call.
func (*LiveChatModeratorsDeleteCall)Fields¶
func (c *LiveChatModeratorsDeleteCall) Fields(s ...googleapi.Field) *LiveChatModeratorsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveChatModeratorsDeleteCall)Header¶
func (c *LiveChatModeratorsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLiveChatModeratorsInsertCall¶
type LiveChatModeratorsInsertCall struct {// contains filtered or unexported fields}func (*LiveChatModeratorsInsertCall)Context¶
func (c *LiveChatModeratorsInsertCall) Context(ctxcontext.Context) *LiveChatModeratorsInsertCall
Context sets the context to be used in this call's Do method.
func (*LiveChatModeratorsInsertCall)Do¶
func (c *LiveChatModeratorsInsertCall) Do(opts ...googleapi.CallOption) (*LiveChatModerator,error)
Do executes the "youtube.liveChatModerators.insert" call.Any non-2xx status code is an error. Response headers are in either*LiveChatModerator.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*LiveChatModeratorsInsertCall)Fields¶
func (c *LiveChatModeratorsInsertCall) Fields(s ...googleapi.Field) *LiveChatModeratorsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveChatModeratorsInsertCall)Header¶
func (c *LiveChatModeratorsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLiveChatModeratorsListCall¶
type LiveChatModeratorsListCall struct {// contains filtered or unexported fields}func (*LiveChatModeratorsListCall)Context¶
func (c *LiveChatModeratorsListCall) Context(ctxcontext.Context) *LiveChatModeratorsListCall
Context sets the context to be used in this call's Do method.
func (*LiveChatModeratorsListCall)Do¶
func (c *LiveChatModeratorsListCall) Do(opts ...googleapi.CallOption) (*LiveChatModeratorListResponse,error)
Do executes the "youtube.liveChatModerators.list" call.Any non-2xx status code is an error. Response headers are in either*LiveChatModeratorListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LiveChatModeratorsListCall)Fields¶
func (c *LiveChatModeratorsListCall) Fields(s ...googleapi.Field) *LiveChatModeratorsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveChatModeratorsListCall)Header¶
func (c *LiveChatModeratorsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveChatModeratorsListCall)IfNoneMatch¶
func (c *LiveChatModeratorsListCall) IfNoneMatch(entityTagstring) *LiveChatModeratorsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LiveChatModeratorsListCall)MaxResults¶
func (c *LiveChatModeratorsListCall) MaxResults(maxResultsint64) *LiveChatModeratorsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*LiveChatModeratorsListCall)PageToken¶
func (c *LiveChatModeratorsListCall) PageToken(pageTokenstring) *LiveChatModeratorsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*LiveChatModeratorsListCall)Pages¶
func (c *LiveChatModeratorsListCall) Pages(ctxcontext.Context, f func(*LiveChatModeratorListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeLiveChatModeratorsService¶
type LiveChatModeratorsService struct {// contains filtered or unexported fields}funcNewLiveChatModeratorsService¶
func NewLiveChatModeratorsService(s *Service) *LiveChatModeratorsService
func (*LiveChatModeratorsService)Delete¶
func (r *LiveChatModeratorsService) Delete(idstring) *LiveChatModeratorsDeleteCall
Delete: Deletes a chat moderator.
- id: .
func (*LiveChatModeratorsService)Insert¶
func (r *LiveChatModeratorsService) Insert(part []string, livechatmoderator *LiveChatModerator) *LiveChatModeratorsInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response returns. Set the parameter value tosnippet.
func (*LiveChatModeratorsService)List¶
func (r *LiveChatModeratorsService) List(liveChatIdstring, part []string) *LiveChatModeratorsListCall
List: Retrieves a list of resources, possibly filtered.
- liveChatId: The id of the live chat for which moderators should bereturned.
- part: The *part* parameter specifies the liveChatModerator resource partsthat the API response will include. Supported values are id and snippet.
typeLiveChatNewSponsorDetails¶added inv0.56.0
type LiveChatNewSponsorDetails struct {// IsUpgrade: If the viewer just had upgraded from a lower level. For viewers// that were not members at the time of purchase, this field is false.IsUpgradebool `json:"isUpgrade,omitempty"`// MemberLevelName: The name of the Level that the viewer just had joined. The// Level names are defined by the YouTube channel offering the Membership. In// some situations this field isn't filled.MemberLevelNamestring `json:"memberLevelName,omitempty"`// ForceSendFields is a list of field names (e.g. "IsUpgrade") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IsUpgrade") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatNewSponsorDetails)MarshalJSON¶added inv0.56.0
func (sLiveChatNewSponsorDetails) MarshalJSON() ([]byte,error)
typeLiveChatPollDetails¶added inv0.166.0
type LiveChatPollDetails struct {Metadata *LiveChatPollDetailsPollMetadata `json:"metadata,omitempty"`// Possible values:// "unknown"// "active"// "closed"Statusstring `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "Metadata") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Metadata") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatPollDetails)MarshalJSON¶added inv0.166.0
func (sLiveChatPollDetails) MarshalJSON() ([]byte,error)
typeLiveChatPollDetailsPollMetadata¶added inv0.166.0
type LiveChatPollDetailsPollMetadata struct {// Options: The options will be returned in the order that is displayed in 1POptions []*LiveChatPollDetailsPollMetadataPollOption `json:"options,omitempty"`QuestionTextstring `json:"questionText,omitempty"`// ForceSendFields is a list of field names (e.g. "Options") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Options") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatPollDetailsPollMetadata)MarshalJSON¶added inv0.166.0
func (sLiveChatPollDetailsPollMetadata) MarshalJSON() ([]byte,error)
typeLiveChatPollDetailsPollMetadataPollOption¶added inv0.166.0
type LiveChatPollDetailsPollMetadataPollOption struct {OptionTextstring `json:"optionText,omitempty"`Tallyint64 `json:"tally,omitempty,string"`// ForceSendFields is a list of field names (e.g. "OptionText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "OptionText") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatPollDetailsPollMetadataPollOption)MarshalJSON¶added inv0.166.0
func (sLiveChatPollDetailsPollMetadataPollOption) MarshalJSON() ([]byte,error)
typeLiveChatSuperChatDetails¶
type LiveChatSuperChatDetails struct {// AmountDisplayString: A rendered string that displays the fund amount and// currency to the user.AmountDisplayStringstring `json:"amountDisplayString,omitempty"`// AmountMicros: The amount purchased by the user, in micros (1,750,000 micros// = 1.75).AmountMicrosuint64 `json:"amountMicros,omitempty,string"`// Currency: The currency in which the purchase was made.Currencystring `json:"currency,omitempty"`// Tier: The tier in which the amount belongs. Lower amounts belong to lower// tiers. The lowest tier is 1.Tierint64 `json:"tier,omitempty"`// UserComment: The comment added by the user to this Super Chat event.UserCommentstring `json:"userComment,omitempty"`// ForceSendFields is a list of field names (e.g. "AmountDisplayString") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AmountDisplayString") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatSuperChatDetails)MarshalJSON¶
func (sLiveChatSuperChatDetails) MarshalJSON() ([]byte,error)
typeLiveChatSuperStickerDetails¶added inv0.2.0
type LiveChatSuperStickerDetails struct {// AmountDisplayString: A rendered string that displays the fund amount and// currency to the user.AmountDisplayStringstring `json:"amountDisplayString,omitempty"`// AmountMicros: The amount purchased by the user, in micros (1,750,000 micros// = 1.75).AmountMicrosuint64 `json:"amountMicros,omitempty,string"`// Currency: The currency in which the purchase was made.Currencystring `json:"currency,omitempty"`// SuperStickerMetadata: Information about the Super Sticker.SuperStickerMetadata *SuperStickerMetadata `json:"superStickerMetadata,omitempty"`// Tier: The tier in which the amount belongs. Lower amounts belong to lower// tiers. The lowest tier is 1.Tierint64 `json:"tier,omitempty"`// ForceSendFields is a list of field names (e.g. "AmountDisplayString") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AmountDisplayString") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatSuperStickerDetails)MarshalJSON¶added inv0.2.0
func (sLiveChatSuperStickerDetails) MarshalJSON() ([]byte,error)
typeLiveChatTextMessageDetails¶
type LiveChatTextMessageDetails struct {// MessageText: The user's message.MessageTextstring `json:"messageText,omitempty"`// ForceSendFields is a list of field names (e.g. "MessageText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MessageText") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatTextMessageDetails)MarshalJSON¶
func (sLiveChatTextMessageDetails) MarshalJSON() ([]byte,error)
typeLiveChatUserBannedMessageDetails¶
type LiveChatUserBannedMessageDetails struct {// BanDurationSeconds: The duration of the ban. This property is only present// if the banType is temporary.BanDurationSecondsuint64 `json:"banDurationSeconds,omitempty,string"`// BanType: The type of ban.//// Possible values:// "permanent"// "temporary"BanTypestring `json:"banType,omitempty"`// BannedUserDetails: The details of the user that was banned.BannedUserDetails *ChannelProfileDetails `json:"bannedUserDetails,omitempty"`// ForceSendFields is a list of field names (e.g. "BanDurationSeconds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BanDurationSeconds") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveChatUserBannedMessageDetails)MarshalJSON¶
func (sLiveChatUserBannedMessageDetails) MarshalJSON() ([]byte,error)
typeLiveStream¶
type LiveStream struct {// Cdn: The cdn object defines the live stream's content delivery network (CDN)// settings. These settings provide details about the manner in which you// stream your content to YouTube.Cdn *CdnSettings `json:"cdn,omitempty"`// ContentDetails: The content_details object contains information about the// stream, including the closed captions ingestion URL.ContentDetails *LiveStreamContentDetails `json:"contentDetails,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube assigns to uniquely identify the stream.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#liveStream".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the stream,// including its channel, title, and description.Snippet *LiveStreamSnippet `json:"snippet,omitempty"`// Status: The status object contains information about live stream's status.Status *LiveStreamStatus `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Cdn") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cdn") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveStream: A live stream describes a live ingestion point.
func (LiveStream)MarshalJSON¶
func (sLiveStream) MarshalJSON() ([]byte,error)
typeLiveStreamConfigurationIssue¶
type LiveStreamConfigurationIssue struct {// Description: The long-form description of the issue and how to resolve it.Descriptionstring `json:"description,omitempty"`// Reason: The short-form reason for this issue.Reasonstring `json:"reason,omitempty"`// Severity: How severe this issue is to the stream.//// Possible values:// "info"// "warning"// "error"Severitystring `json:"severity,omitempty"`// Type: The kind of error happening.//// Possible values:// "gopSizeOver"// "gopSizeLong"// "gopSizeShort"// "openGop"// "badContainer"// "audioBitrateHigh"// "audioBitrateLow"// "audioSampleRate"// "bitrateHigh"// "bitrateLow"// "audioCodec"// "videoCodec"// "noAudioStream"// "noVideoStream"// "multipleVideoStreams"// "multipleAudioStreams"// "audioTooManyChannels"// "interlacedVideo"// "frameRateHigh"// "resolutionMismatch"// "videoCodecMismatch"// "videoInterlaceMismatch"// "videoProfileMismatch"// "videoBitrateMismatch"// "framerateMismatch"// "gopMismatch"// "audioSampleRateMismatch"// "audioStereoMismatch"// "audioCodecMismatch"// "audioBitrateMismatch"// "videoResolutionSuboptimal"// "videoResolutionUnsupported"// "videoIngestionStarved"// "videoIngestionFasterThanRealtime"Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveStreamConfigurationIssue)MarshalJSON¶
func (sLiveStreamConfigurationIssue) MarshalJSON() ([]byte,error)
typeLiveStreamContentDetails¶
type LiveStreamContentDetails struct {// ClosedCaptionsIngestionUrl: The ingestion URL where the closed captions of// this stream are sent.ClosedCaptionsIngestionUrlstring `json:"closedCaptionsIngestionUrl,omitempty"`// IsReusable: Indicates whether the stream is reusable, which means that it// can be bound to multiple broadcasts. It is common for broadcasters to reuse// the same stream for many different broadcasts if those broadcasts occur at// different times. If you set this value to false, then the stream will not be// reusable, which means that it can only be bound to one broadcast.// Non-reusable streams differ from reusable streams in the following ways: - A// non-reusable stream can only be bound to one broadcast. - A non-reusable// stream might be deleted by an automated process after the broadcast ends. -// The liveStreams.list method does not list non-reusable streams if you call// the method and set the mine parameter to true. The only way to use that// method to retrieve the resource for a non-reusable stream is to use the id// parameter to identify the stream.IsReusablebool `json:"isReusable,omitempty"`// ForceSendFields is a list of field names (e.g. "ClosedCaptionsIngestionUrl")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClosedCaptionsIngestionUrl") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveStreamContentDetails: Detailed settings of a stream.
func (LiveStreamContentDetails)MarshalJSON¶
func (sLiveStreamContentDetails) MarshalJSON() ([]byte,error)
typeLiveStreamHealthStatus¶
type LiveStreamHealthStatus struct {// ConfigurationIssues: The configurations issues on this streamConfigurationIssues []*LiveStreamConfigurationIssue `json:"configurationIssues,omitempty"`// LastUpdateTimeSeconds: The last time this status was updated (in seconds)LastUpdateTimeSecondsuint64 `json:"lastUpdateTimeSeconds,omitempty,string"`// Status: The status code of this stream//// Possible values:// "good"// "ok"// "bad"// "noData"// "revoked"Statusstring `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "ConfigurationIssues") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConfigurationIssues") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveStreamHealthStatus)MarshalJSON¶
func (sLiveStreamHealthStatus) MarshalJSON() ([]byte,error)
typeLiveStreamListResponse¶
type LiveStreamListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of live streams that match the request criteria.Items []*LiveStream `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#liveStreamListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveStreamListResponse)MarshalJSON¶
func (sLiveStreamListResponse) MarshalJSON() ([]byte,error)
typeLiveStreamSnippet¶
type LiveStreamSnippet struct {// ChannelId: The ID that YouTube uses to uniquely identify the channel that is// transmitting the stream.ChannelIdstring `json:"channelId,omitempty"`// Description: The stream's description. The value cannot be longer than 10000// characters.Descriptionstring `json:"description,omitempty"`IsDefaultStreambool `json:"isDefaultStream,omitempty"`// PublishedAt: The date and time that the stream was created.PublishedAtstring `json:"publishedAt,omitempty"`// Title: The stream's title. The value must be between 1 and 128 characters// long.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LiveStreamSnippet)MarshalJSON¶
func (sLiveStreamSnippet) MarshalJSON() ([]byte,error)
typeLiveStreamStatus¶
type LiveStreamStatus struct {// HealthStatus: The health status of the stream.HealthStatus *LiveStreamHealthStatus `json:"healthStatus,omitempty"`// Possible values:// "created"// "ready"// "active"// "inactive"// "error"StreamStatusstring `json:"streamStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "HealthStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HealthStatus") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveStreamStatus: Brief description of the live stream status.
func (LiveStreamStatus)MarshalJSON¶
func (sLiveStreamStatus) MarshalJSON() ([]byte,error)
typeLiveStreamsDeleteCall¶
type LiveStreamsDeleteCall struct {// contains filtered or unexported fields}func (*LiveStreamsDeleteCall)Context¶
func (c *LiveStreamsDeleteCall) Context(ctxcontext.Context) *LiveStreamsDeleteCall
Context sets the context to be used in this call's Do method.
func (*LiveStreamsDeleteCall)Do¶
func (c *LiveStreamsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.liveStreams.delete" call.
func (*LiveStreamsDeleteCall)Fields¶
func (c *LiveStreamsDeleteCall) Fields(s ...googleapi.Field) *LiveStreamsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveStreamsDeleteCall)Header¶
func (c *LiveStreamsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveStreamsDeleteCall)OnBehalfOfContentOwner¶
func (c *LiveStreamsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveStreamsDeleteCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveStreamsDeleteCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveStreamsDeleteCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveStreamsDeleteCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
typeLiveStreamsInsertCall¶
type LiveStreamsInsertCall struct {// contains filtered or unexported fields}func (*LiveStreamsInsertCall)Context¶
func (c *LiveStreamsInsertCall) Context(ctxcontext.Context) *LiveStreamsInsertCall
Context sets the context to be used in this call's Do method.
func (*LiveStreamsInsertCall)Do¶
func (c *LiveStreamsInsertCall) Do(opts ...googleapi.CallOption) (*LiveStream,error)
Do executes the "youtube.liveStreams.insert" call.Any non-2xx status code is an error. Response headers are in either*LiveStream.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LiveStreamsInsertCall)Fields¶
func (c *LiveStreamsInsertCall) Fields(s ...googleapi.Field) *LiveStreamsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveStreamsInsertCall)Header¶
func (c *LiveStreamsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveStreamsInsertCall)OnBehalfOfContentOwner¶
func (c *LiveStreamsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveStreamsInsertCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveStreamsInsertCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveStreamsInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveStreamsInsertCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
typeLiveStreamsListCall¶
type LiveStreamsListCall struct {// contains filtered or unexported fields}func (*LiveStreamsListCall)Context¶
func (c *LiveStreamsListCall) Context(ctxcontext.Context) *LiveStreamsListCall
Context sets the context to be used in this call's Do method.
func (*LiveStreamsListCall)Do¶
func (c *LiveStreamsListCall) Do(opts ...googleapi.CallOption) (*LiveStreamListResponse,error)
Do executes the "youtube.liveStreams.list" call.Any non-2xx status code is an error. Response headers are in either*LiveStreamListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*LiveStreamsListCall)Fields¶
func (c *LiveStreamsListCall) Fields(s ...googleapi.Field) *LiveStreamsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveStreamsListCall)Header¶
func (c *LiveStreamsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveStreamsListCall)Id¶
func (c *LiveStreamsListCall) Id(id ...string) *LiveStreamsListCall
Id sets the optional parameter "id": Return LiveStreams with the given idsfrom Stubby or Apiary.
func (*LiveStreamsListCall)IfNoneMatch¶
func (c *LiveStreamsListCall) IfNoneMatch(entityTagstring) *LiveStreamsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LiveStreamsListCall)MaxResults¶
func (c *LiveStreamsListCall) MaxResults(maxResultsint64) *LiveStreamsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*LiveStreamsListCall)Mine¶
func (c *LiveStreamsListCall) Mine(minebool) *LiveStreamsListCall
Mine sets the optional parameter "mine":
func (*LiveStreamsListCall)OnBehalfOfContentOwner¶
func (c *LiveStreamsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveStreamsListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveStreamsListCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveStreamsListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveStreamsListCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*LiveStreamsListCall)PageToken¶
func (c *LiveStreamsListCall) PageToken(pageTokenstring) *LiveStreamsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*LiveStreamsListCall)Pages¶
func (c *LiveStreamsListCall) Pages(ctxcontext.Context, f func(*LiveStreamListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeLiveStreamsService¶
type LiveStreamsService struct {// contains filtered or unexported fields}funcNewLiveStreamsService¶
func NewLiveStreamsService(s *Service) *LiveStreamsService
func (*LiveStreamsService)Delete¶
func (r *LiveStreamsService) Delete(idstring) *LiveStreamsDeleteCall
Delete: Deletes an existing stream for the authenticated user.
- id: .
func (*LiveStreamsService)Insert¶
func (r *LiveStreamsService) Insert(part []string, livestream *LiveStream) *LiveStreamsInsertCall
Insert: Inserts a new stream for the authenticated user.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. The part properties thatyou can include in the parameter value are id, snippet, cdn,content_details, and status.
func (*LiveStreamsService)List¶
func (r *LiveStreamsService) List(part []string) *LiveStreamsListCall
List: Retrieve the list of streams associated with the given channel. --
- part: The *part* parameter specifies a comma-separated list of one or moreliveStream resource properties that the API response will include. Thepart names that you can include in the parameter value are id, snippet,cdn, and status.
func (*LiveStreamsService)Update¶
func (r *LiveStreamsService) Update(part []string, livestream *LiveStream) *LiveStreamsUpdateCall
Update: Updates an existing stream for the authenticated user.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. The part properties thatyou can include in the parameter value are id, snippet, cdn, and status.Note that this method will override the existing values for all of themutable properties that are contained in any parts that the parametervalue specifies. If the request body does not specify a value for amutable property, the existing value for that property will be removed.
typeLiveStreamsUpdateCall¶
type LiveStreamsUpdateCall struct {// contains filtered or unexported fields}func (*LiveStreamsUpdateCall)Context¶
func (c *LiveStreamsUpdateCall) Context(ctxcontext.Context) *LiveStreamsUpdateCall
Context sets the context to be used in this call's Do method.
func (*LiveStreamsUpdateCall)Do¶
func (c *LiveStreamsUpdateCall) Do(opts ...googleapi.CallOption) (*LiveStream,error)
Do executes the "youtube.liveStreams.update" call.Any non-2xx status code is an error. Response headers are in either*LiveStream.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LiveStreamsUpdateCall)Fields¶
func (c *LiveStreamsUpdateCall) Fields(s ...googleapi.Field) *LiveStreamsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LiveStreamsUpdateCall)Header¶
func (c *LiveStreamsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LiveStreamsUpdateCall)OnBehalfOfContentOwner¶
func (c *LiveStreamsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *LiveStreamsUpdateCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*LiveStreamsUpdateCall)OnBehalfOfContentOwnerChannel¶
func (c *LiveStreamsUpdateCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *LiveStreamsUpdateCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
typeLocalizedProperty¶
type LocalizedProperty struct {Defaultstring `json:"default,omitempty"`// DefaultLanguage: The language of the default property.DefaultLanguage *LanguageTag `json:"defaultLanguage,omitempty"`Localized []*LocalizedString `json:"localized,omitempty"`// ForceSendFields is a list of field names (e.g. "Default") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Default") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LocalizedProperty)MarshalJSON¶
func (sLocalizedProperty) MarshalJSON() ([]byte,error)
typeLocalizedString¶
type LocalizedString struct {Languagestring `json:"language,omitempty"`Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Language") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Language") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (LocalizedString)MarshalJSON¶
func (sLocalizedString) MarshalJSON() ([]byte,error)
typeMember¶added inv0.9.0
type Member struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#member".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the member.Snippet *MemberSnippet `json:"snippet,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Member: A *member* resource represents a member for a YouTube channel. Amember provides recurring monetary support to a creator and receives specialbenefits.
func (Member)MarshalJSON¶added inv0.9.0
typeMemberListResponse¶added inv0.9.0
type MemberListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of members that match the request criteria.Items []*Member `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#memberListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`PageInfo *PageInfo `json:"pageInfo,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (MemberListResponse)MarshalJSON¶added inv0.9.0
func (sMemberListResponse) MarshalJSON() ([]byte,error)
typeMemberSnippet¶added inv0.9.0
type MemberSnippet struct {// CreatorChannelId: The id of the channel that's offering memberships.CreatorChannelIdstring `json:"creatorChannelId,omitempty"`// MemberDetails: Details about the member.MemberDetails *ChannelProfileDetails `json:"memberDetails,omitempty"`// MembershipsDetails: Details about the user's membership.MembershipsDetails *MembershipsDetails `json:"membershipsDetails,omitempty"`// ForceSendFields is a list of field names (e.g. "CreatorChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreatorChannelId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (MemberSnippet)MarshalJSON¶added inv0.9.0
func (sMemberSnippet) MarshalJSON() ([]byte,error)
typeMembersListCall¶added inv0.9.0
type MembersListCall struct {// contains filtered or unexported fields}func (*MembersListCall)Context¶added inv0.9.0
func (c *MembersListCall) Context(ctxcontext.Context) *MembersListCall
Context sets the context to be used in this call's Do method.
func (*MembersListCall)Do¶added inv0.9.0
func (c *MembersListCall) Do(opts ...googleapi.CallOption) (*MemberListResponse,error)
Do executes the "youtube.members.list" call.Any non-2xx status code is an error. Response headers are in either*MemberListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*MembersListCall)Fields¶added inv0.9.0
func (c *MembersListCall) Fields(s ...googleapi.Field) *MembersListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*MembersListCall)FilterByMemberChannelId¶added inv0.16.0
func (c *MembersListCall) FilterByMemberChannelId(filterByMemberChannelIdstring) *MembersListCall
FilterByMemberChannelId sets the optional parameter"filterByMemberChannelId": Comma separated list of channel IDs. Only dataabout members that are part of this list will be included in the response.
func (*MembersListCall)HasAccessToLevel¶added inv0.9.0
func (c *MembersListCall) HasAccessToLevel(hasAccessToLevelstring) *MembersListCall
HasAccessToLevel sets the optional parameter "hasAccessToLevel": Filtermembers in the results set to the ones that have access to a level.
func (*MembersListCall)Header¶added inv0.9.0
func (c *MembersListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*MembersListCall)IfNoneMatch¶added inv0.9.0
func (c *MembersListCall) IfNoneMatch(entityTagstring) *MembersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*MembersListCall)MaxResults¶added inv0.9.0
func (c *MembersListCall) MaxResults(maxResultsint64) *MembersListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*MembersListCall)Mode¶added inv0.9.0
func (c *MembersListCall) Mode(modestring) *MembersListCall
Mode sets the optional parameter "mode": Parameter that specifies whichchannel members to return.
Possible values:
"listMembersModeUnknown""updates" - Return only members that joined after the first call with this
mode was made.
"all_current" (default) - Return all current members, from newest to
oldest.
func (*MembersListCall)PageToken¶added inv0.9.0
func (c *MembersListCall) PageToken(pageTokenstring) *MembersListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*MembersListCall)Pages¶added inv0.9.0
func (c *MembersListCall) Pages(ctxcontext.Context, f func(*MemberListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeMembersService¶added inv0.9.0
type MembersService struct {// contains filtered or unexported fields}funcNewMembersService¶added inv0.9.0
func NewMembersService(s *Service) *MembersService
func (*MembersService)List¶added inv0.9.0
func (r *MembersService) List(part []string) *MembersListCall
List: Retrieves a list of members that match the request criteria for achannel.
- part: The *part* parameter specifies the member resource parts that theAPI response will include. Set the parameter value to snippet.
typeMembershipsDetails¶added inv0.9.0
type MembershipsDetails struct {// AccessibleLevels: Ids of all levels that the user has access to. This// includes the currently active level and all other levels that are included// because of a higher purchase.AccessibleLevels []string `json:"accessibleLevels,omitempty"`// HighestAccessibleLevel: Id of the highest level that the user has access to// at the moment.HighestAccessibleLevelstring `json:"highestAccessibleLevel,omitempty"`// HighestAccessibleLevelDisplayName: Display name for the highest level that// the user has access to at the moment.HighestAccessibleLevelDisplayNamestring `json:"highestAccessibleLevelDisplayName,omitempty"`// MembershipsDuration: Data about memberships duration without taking into// consideration pricing levels.MembershipsDuration *MembershipsDuration `json:"membershipsDuration,omitempty"`// MembershipsDurationAtLevels: Data about memberships duration on particular// pricing levels.MembershipsDurationAtLevels []*MembershipsDurationAtLevel `json:"membershipsDurationAtLevels,omitempty"`// ForceSendFields is a list of field names (e.g. "AccessibleLevels") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccessibleLevels") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (MembershipsDetails)MarshalJSON¶added inv0.9.0
func (sMembershipsDetails) MarshalJSON() ([]byte,error)
typeMembershipsDuration¶added inv0.20.0
type MembershipsDuration struct {// MemberSince: The date and time when the user became a continuous member// across all levels.MemberSincestring `json:"memberSince,omitempty"`// MemberTotalDurationMonths: The cumulative time the user has been a member// across all levels in complete months (the time is rounded down to the// nearest integer).MemberTotalDurationMonthsint64 `json:"memberTotalDurationMonths,omitempty"`// ForceSendFields is a list of field names (e.g. "MemberSince") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MemberSince") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (MembershipsDuration)MarshalJSON¶added inv0.20.0
func (sMembershipsDuration) MarshalJSON() ([]byte,error)
typeMembershipsDurationAtLevel¶added inv0.20.0
type MembershipsDurationAtLevel struct {// Level: Pricing level ID.Levelstring `json:"level,omitempty"`// MemberSince: The date and time when the user became a continuous member for// the given level.MemberSincestring `json:"memberSince,omitempty"`// MemberTotalDurationMonths: The cumulative time the user has been a member// for the given level in complete months (the time is rounded down to the// nearest integer).MemberTotalDurationMonthsint64 `json:"memberTotalDurationMonths,omitempty"`// ForceSendFields is a list of field names (e.g. "Level") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Level") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (MembershipsDurationAtLevel)MarshalJSON¶added inv0.20.0
func (sMembershipsDurationAtLevel) MarshalJSON() ([]byte,error)
typeMembershipsLevel¶added inv0.9.0
type MembershipsLevel struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube assigns to uniquely identify the memberships level.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#membershipsLevelListResponse".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the level.Snippet *MembershipsLevelSnippet `json:"snippet,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}MembershipsLevel: A *membershipsLevel* resource represents an offer made byYouTube creators for their fans. Users can become members of the channel byjoining one of the available levels. They will provide recurring monetarysupport and receives special benefits.
func (MembershipsLevel)MarshalJSON¶added inv0.9.0
func (sMembershipsLevel) MarshalJSON() ([]byte,error)
typeMembershipsLevelListResponse¶added inv0.9.0
type MembershipsLevelListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of pricing levels offered by a creator to the fans.Items []*MembershipsLevel `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#membershipsLevelListResponse".Kindstring `json:"kind,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (MembershipsLevelListResponse)MarshalJSON¶added inv0.9.0
func (sMembershipsLevelListResponse) MarshalJSON() ([]byte,error)
typeMembershipsLevelSnippet¶added inv0.9.0
type MembershipsLevelSnippet struct {// CreatorChannelId: The id of the channel that's offering channel memberships.CreatorChannelIdstring `json:"creatorChannelId,omitempty"`// LevelDetails: Details about the pricing level.LevelDetails *LevelDetails `json:"levelDetails,omitempty"`// ForceSendFields is a list of field names (e.g. "CreatorChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreatorChannelId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (MembershipsLevelSnippet)MarshalJSON¶added inv0.9.0
func (sMembershipsLevelSnippet) MarshalJSON() ([]byte,error)
typeMembershipsLevelsListCall¶added inv0.9.0
type MembershipsLevelsListCall struct {// contains filtered or unexported fields}func (*MembershipsLevelsListCall)Context¶added inv0.9.0
func (c *MembershipsLevelsListCall) Context(ctxcontext.Context) *MembershipsLevelsListCall
Context sets the context to be used in this call's Do method.
func (*MembershipsLevelsListCall)Do¶added inv0.9.0
func (c *MembershipsLevelsListCall) Do(opts ...googleapi.CallOption) (*MembershipsLevelListResponse,error)
Do executes the "youtube.membershipsLevels.list" call.Any non-2xx status code is an error. Response headers are in either*MembershipsLevelListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*MembershipsLevelsListCall)Fields¶added inv0.9.0
func (c *MembershipsLevelsListCall) Fields(s ...googleapi.Field) *MembershipsLevelsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*MembershipsLevelsListCall)Header¶added inv0.9.0
func (c *MembershipsLevelsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*MembershipsLevelsListCall)IfNoneMatch¶added inv0.9.0
func (c *MembershipsLevelsListCall) IfNoneMatch(entityTagstring) *MembershipsLevelsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeMembershipsLevelsService¶added inv0.9.0
type MembershipsLevelsService struct {// contains filtered or unexported fields}funcNewMembershipsLevelsService¶added inv0.9.0
func NewMembershipsLevelsService(s *Service) *MembershipsLevelsService
func (*MembershipsLevelsService)List¶added inv0.9.0
func (r *MembershipsLevelsService) List(part []string) *MembershipsLevelsListCall
List: Retrieves a list of all pricing levels offered by a creator to thefans.
- part: The *part* parameter specifies the membershipsLevel resource partsthat the API response will include. Supported values are id and snippet.
typeMonitorStreamInfo¶
type MonitorStreamInfo struct {// BroadcastStreamDelayMs: If you have set the enableMonitorStream property to// true, then this property determines the length of the live broadcast delay.BroadcastStreamDelayMsint64 `json:"broadcastStreamDelayMs,omitempty"`// EmbedHtml: HTML code that embeds a player that plays the monitor stream.EmbedHtmlstring `json:"embedHtml,omitempty"`// EnableMonitorStream: This value determines whether the monitor stream is// enabled for the broadcast. If the monitor stream is enabled, then YouTube// will broadcast the event content on a special stream intended only for the// broadcaster's consumption. The broadcaster can use the stream to review the// event content and also to identify the optimal times to insert cuepoints.// You need to set this value to true if you intend to have a broadcast delay// for your event. *Note:* This property cannot be updated once the broadcast// is in the testing or live state.EnableMonitorStream *bool `json:"enableMonitorStream,omitempty"`// ForceSendFields is a list of field names (e.g. "BroadcastStreamDelayMs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BroadcastStreamDelayMs") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}MonitorStreamInfo: Settings and Info of the monitor stream
func (MonitorStreamInfo)MarshalJSON¶
func (sMonitorStreamInfo) MarshalJSON() ([]byte,error)
typePageInfo¶
type PageInfo struct {// ResultsPerPage: The number of results included in the API response.ResultsPerPageint64 `json:"resultsPerPage,omitempty"`// TotalResults: The total number of results in the result set.TotalResultsint64 `json:"totalResults,omitempty"`// ForceSendFields is a list of field names (e.g. "ResultsPerPage") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResultsPerPage") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PageInfo: Paging details for lists of resources, including total number ofitems available and number of resources returned in a single page.
func (PageInfo)MarshalJSON¶
typePlaylist¶
type Playlist struct {// ContentDetails: The contentDetails object contains information like video// count.ContentDetails *PlaylistContentDetails `json:"contentDetails,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the playlist.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#playlist".Kindstring `json:"kind,omitempty"`// Localizations: Localizations for different languagesLocalizations map[string]PlaylistLocalization `json:"localizations,omitempty"`// Player: The player object contains information that you would use to play// the playlist in an embedded player.Player *PlaylistPlayer `json:"player,omitempty"`// Snippet: The snippet object contains basic details about the playlist, such// as its title and description.Snippet *PlaylistSnippet `json:"snippet,omitempty"`// Status: The status object contains status information for the playlist.Status *PlaylistStatus `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContentDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentDetails") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Playlist: A *playlist* resource represents a YouTube playlist. A playlist isa collection of videos that can be viewed sequentially and shared with otherusers. A playlist can contain up to 200 videos, and YouTube does not limitthe number of playlists that each user creates. By default, playlists arepublicly visible to other users, but playlists can be public or private.YouTube also uses playlists to identify special collections of videos for achannel, such as: - uploaded videos - favorite videos - positively rated(liked) videos - watch history - watch later To be more specific, theselists are associated with a channel, which is a collection of a person,group, or company's videos, playlists, and other YouTube information. Youcan retrieve the playlist IDs for each of these lists from the channelresource for a given channel. You can then use the playlistItems.list methodto retrieve any of those lists. You can also add or remove items from thoselists by calling the playlistItems.insert and playlistItems.delete methods.
func (Playlist)MarshalJSON¶
typePlaylistContentDetails¶
type PlaylistContentDetails struct {// ItemCount: The number of videos in the playlist.ItemCountint64 `json:"itemCount,omitempty"`// ForceSendFields is a list of field names (e.g. "ItemCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ItemCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PlaylistContentDetails)MarshalJSON¶
func (sPlaylistContentDetails) MarshalJSON() ([]byte,error)
typePlaylistImage¶added inv0.148.0
type PlaylistImage struct {// Id: Identifies this resource (playlist id and image type).Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#playlistImages".Kindstring `json:"kind,omitempty"`Snippet *PlaylistImageSnippet `json:"snippet,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PlaylistImage)MarshalJSON¶added inv0.148.0
func (sPlaylistImage) MarshalJSON() ([]byte,error)
typePlaylistImageListResponse¶added inv0.148.0
type PlaylistImageListResponse struct {Items []*PlaylistImage `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#playlistImageListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Items") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PlaylistImageListResponse)MarshalJSON¶added inv0.148.0
func (sPlaylistImageListResponse) MarshalJSON() ([]byte,error)
typePlaylistImageSnippet¶added inv0.148.0
type PlaylistImageSnippet struct {// Height: The image height.Heightint64 `json:"height,omitempty"`// PlaylistId: The Playlist ID of the playlist this image is associated with.PlaylistIdstring `json:"playlistId,omitempty"`// Type: The image type.//// Possible values:// "hero" - The main image that will be used for this playlist.Typestring `json:"type,omitempty"`// Width: The image width.Widthint64 `json:"width,omitempty"`// ForceSendFields is a list of field names (e.g. "Height") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Height") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PlaylistImageSnippet: A *playlistImage* resource identifies anotherresource, such as a image, that is associated with a playlist. In addition,the playlistImage resource contains details about the included resource thatpertain specifically to how that resource is used in that playlist. YouTubeuses playlists to identify special collections of videos for a channel, suchas: - uploaded videos - favorite videos - positively rated (liked) videos -watch history To be more specific, these lists are associated with achannel, which is a collection of a person, group, or company's videos,playlists, and other YouTube information. You can retrieve the playlist IDsfor each of these lists from the channel resource for a given channel. Youcan then use the playlistImages.list method to retrieve image data for anyof those playlists. You can also add or remove images from those lists bycalling the playlistImages.insert and playlistImages.delete methods.
func (PlaylistImageSnippet)MarshalJSON¶added inv0.148.0
func (sPlaylistImageSnippet) MarshalJSON() ([]byte,error)
typePlaylistImagesDeleteCall¶added inv0.148.0
type PlaylistImagesDeleteCall struct {// contains filtered or unexported fields}func (*PlaylistImagesDeleteCall)Context¶added inv0.148.0
func (c *PlaylistImagesDeleteCall) Context(ctxcontext.Context) *PlaylistImagesDeleteCall
Context sets the context to be used in this call's Do method.
func (*PlaylistImagesDeleteCall)Do¶added inv0.148.0
func (c *PlaylistImagesDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.playlistImages.delete" call.
func (*PlaylistImagesDeleteCall)Fields¶added inv0.148.0
func (c *PlaylistImagesDeleteCall) Fields(s ...googleapi.Field) *PlaylistImagesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistImagesDeleteCall)Header¶added inv0.148.0
func (c *PlaylistImagesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistImagesDeleteCall)Id¶added inv0.148.0
func (c *PlaylistImagesDeleteCall) Id(idstring) *PlaylistImagesDeleteCall
Id sets the optional parameter "id": Id to identify this image. This isreturned from by the List method.
func (*PlaylistImagesDeleteCall)OnBehalfOfContentOwner¶added inv0.148.0
func (c *PlaylistImagesDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistImagesDeleteCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typePlaylistImagesInsertCall¶added inv0.148.0
type PlaylistImagesInsertCall struct {// contains filtered or unexported fields}func (*PlaylistImagesInsertCall)Context¶added inv0.148.0
func (c *PlaylistImagesInsertCall) Context(ctxcontext.Context) *PlaylistImagesInsertCall
Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.
func (*PlaylistImagesInsertCall)Do¶added inv0.148.0
func (c *PlaylistImagesInsertCall) Do(opts ...googleapi.CallOption) (*PlaylistImage,error)
Do executes the "youtube.playlistImages.insert" call.Any non-2xx status code is an error. Response headers are in either*PlaylistImage.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*PlaylistImagesInsertCall)Fields¶added inv0.148.0
func (c *PlaylistImagesInsertCall) Fields(s ...googleapi.Field) *PlaylistImagesInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistImagesInsertCall)Header¶added inv0.148.0
func (c *PlaylistImagesInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistImagesInsertCall)Media¶added inv0.168.0
func (c *PlaylistImagesInsertCall) Media(rio.Reader, options ...googleapi.MediaOption) *PlaylistImagesInsertCall
Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.
func (*PlaylistImagesInsertCall)OnBehalfOfContentOwner¶added inv0.148.0
func (c *PlaylistImagesInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistImagesInsertCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*PlaylistImagesInsertCall)OnBehalfOfContentOwnerChannel¶added inv0.148.0
func (c *PlaylistImagesInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *PlaylistImagesInsertCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*PlaylistImagesInsertCall)Part¶added inv0.148.0
func (c *PlaylistImagesInsertCall) Part(part ...string) *PlaylistImagesInsertCall
Part sets the optional parameter "part": The *part* parameter specifies theproperties that the API response will include.
func (*PlaylistImagesInsertCall)ProgressUpdater¶added inv0.168.0
func (c *PlaylistImagesInsertCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *PlaylistImagesInsertCall
ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).
func (*PlaylistImagesInsertCall)ResumableMediadeprecatedadded inv0.168.0
func (c *PlaylistImagesInsertCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *PlaylistImagesInsertCall
ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.
typePlaylistImagesListCall¶added inv0.148.0
type PlaylistImagesListCall struct {// contains filtered or unexported fields}func (*PlaylistImagesListCall)Context¶added inv0.148.0
func (c *PlaylistImagesListCall) Context(ctxcontext.Context) *PlaylistImagesListCall
Context sets the context to be used in this call's Do method.
func (*PlaylistImagesListCall)Do¶added inv0.148.0
func (c *PlaylistImagesListCall) Do(opts ...googleapi.CallOption) (*PlaylistImageListResponse,error)
Do executes the "youtube.playlistImages.list" call.Any non-2xx status code is an error. Response headers are in either*PlaylistImageListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*PlaylistImagesListCall)Fields¶added inv0.148.0
func (c *PlaylistImagesListCall) Fields(s ...googleapi.Field) *PlaylistImagesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistImagesListCall)Header¶added inv0.148.0
func (c *PlaylistImagesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistImagesListCall)IfNoneMatch¶added inv0.148.0
func (c *PlaylistImagesListCall) IfNoneMatch(entityTagstring) *PlaylistImagesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*PlaylistImagesListCall)MaxResults¶added inv0.148.0
func (c *PlaylistImagesListCall) MaxResults(maxResultsint64) *PlaylistImagesListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*PlaylistImagesListCall)OnBehalfOfContentOwner¶added inv0.148.0
func (c *PlaylistImagesListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistImagesListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*PlaylistImagesListCall)OnBehalfOfContentOwnerChannel¶added inv0.148.0
func (c *PlaylistImagesListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *PlaylistImagesListCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*PlaylistImagesListCall)PageToken¶added inv0.148.0
func (c *PlaylistImagesListCall) PageToken(pageTokenstring) *PlaylistImagesListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*PlaylistImagesListCall)Pages¶added inv0.148.0
func (c *PlaylistImagesListCall) Pages(ctxcontext.Context, f func(*PlaylistImageListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*PlaylistImagesListCall)Parent¶added inv0.148.0
func (c *PlaylistImagesListCall) Parent(parentstring) *PlaylistImagesListCall
Parent sets the optional parameter "parent": Return PlaylistImages for thisplaylist id.
func (*PlaylistImagesListCall)Part¶added inv0.148.0
func (c *PlaylistImagesListCall) Part(part ...string) *PlaylistImagesListCall
Part sets the optional parameter "part": The *part* parameter specifies acomma-separated list of one or more playlistImage resource properties thatthe API response will include. If the parameter identifies a property thatcontains child properties, the child properties will be included in theresponse.
typePlaylistImagesService¶added inv0.148.0
type PlaylistImagesService struct {// contains filtered or unexported fields}funcNewPlaylistImagesService¶added inv0.148.0
func NewPlaylistImagesService(s *Service) *PlaylistImagesService
func (*PlaylistImagesService)Delete¶added inv0.148.0
func (r *PlaylistImagesService) Delete() *PlaylistImagesDeleteCall
Delete: Deletes a resource.
func (*PlaylistImagesService)Insert¶added inv0.148.0
func (r *PlaylistImagesService) Insert(playlistimage *PlaylistImage) *PlaylistImagesInsertCall
Insert: Inserts a new resource into this collection.
func (*PlaylistImagesService)List¶added inv0.148.0
func (r *PlaylistImagesService) List() *PlaylistImagesListCall
List: Retrieves a list of resources, possibly filtered.
func (*PlaylistImagesService)Update¶added inv0.148.0
func (r *PlaylistImagesService) Update(playlistimage *PlaylistImage) *PlaylistImagesUpdateCall
Update: Updates an existing resource.
typePlaylistImagesUpdateCall¶added inv0.148.0
type PlaylistImagesUpdateCall struct {// contains filtered or unexported fields}func (*PlaylistImagesUpdateCall)Context¶added inv0.148.0
func (c *PlaylistImagesUpdateCall) Context(ctxcontext.Context) *PlaylistImagesUpdateCall
Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.
func (*PlaylistImagesUpdateCall)Do¶added inv0.148.0
func (c *PlaylistImagesUpdateCall) Do(opts ...googleapi.CallOption) (*PlaylistImage,error)
Do executes the "youtube.playlistImages.update" call.Any non-2xx status code is an error. Response headers are in either*PlaylistImage.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*PlaylistImagesUpdateCall)Fields¶added inv0.148.0
func (c *PlaylistImagesUpdateCall) Fields(s ...googleapi.Field) *PlaylistImagesUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistImagesUpdateCall)Header¶added inv0.148.0
func (c *PlaylistImagesUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistImagesUpdateCall)Media¶added inv0.169.0
func (c *PlaylistImagesUpdateCall) Media(rio.Reader, options ...googleapi.MediaOption) *PlaylistImagesUpdateCall
Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.
func (*PlaylistImagesUpdateCall)OnBehalfOfContentOwner¶added inv0.148.0
func (c *PlaylistImagesUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistImagesUpdateCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*PlaylistImagesUpdateCall)Part¶added inv0.148.0
func (c *PlaylistImagesUpdateCall) Part(part ...string) *PlaylistImagesUpdateCall
Part sets the optional parameter "part": The *part* parameter specifies theproperties that the API response will include.
func (*PlaylistImagesUpdateCall)ProgressUpdater¶added inv0.169.0
func (c *PlaylistImagesUpdateCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *PlaylistImagesUpdateCall
ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).
func (*PlaylistImagesUpdateCall)ResumableMediadeprecatedadded inv0.169.0
func (c *PlaylistImagesUpdateCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *PlaylistImagesUpdateCall
ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.
typePlaylistItem¶
type PlaylistItem struct {// ContentDetails: The contentDetails object is included in the resource if the// included item is a YouTube video. The object contains additional information// about the video.ContentDetails *PlaylistItemContentDetails `json:"contentDetails,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the playlist item.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#playlistItem".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the playlist item,// such as its title and position in the playlist.Snippet *PlaylistItemSnippet `json:"snippet,omitempty"`// Status: The status object contains information about the playlist item's// privacy status.Status *PlaylistItemStatus `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContentDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentDetails") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PlaylistItem: A *playlistItem* resource identifies another resource, such asa video, that is included in a playlist. In addition, the playlistItemresource contains details about the included resource that pertainspecifically to how that resource is used in that playlist. YouTube usesplaylists to identify special collections of videos for a channel, such as:- uploaded videos - favorite videos - positively rated (liked) videos -watch history - watch later To be more specific, these lists are associatedwith a channel, which is a collection of a person, group, or company'svideos, playlists, and other YouTube information. You can retrieve theplaylist IDs for each of these lists from the channel resource for a givenchannel. You can then use the playlistItems.list method to retrieve any ofthose lists. You can also add or remove items from those lists by callingthe playlistItems.insert and playlistItems.delete methods. For example, if auser gives a positive rating to a video, you would insert that video intothe liked videos playlist for that user's channel.
func (PlaylistItem)MarshalJSON¶
func (sPlaylistItem) MarshalJSON() ([]byte,error)
typePlaylistItemContentDetails¶
type PlaylistItemContentDetails struct {// EndAt: The time, measured in seconds from the start of the video, when the// video should stop playing. (The playlist owner can specify the times when// the video should start and stop playing when the video is played in the// context of the playlist.) By default, assume that the video.endTime is the// end of the video.EndAtstring `json:"endAt,omitempty"`// Note: A user-generated note for this item.Notestring `json:"note,omitempty"`// StartAt: The time, measured in seconds from the start of the video, when the// video should start playing. (The playlist owner can specify the times when// the video should start and stop playing when the video is played in the// context of the playlist.) The default value is 0.StartAtstring `json:"startAt,omitempty"`// VideoId: The ID that YouTube uses to uniquely identify a video. To retrieve// the video resource, set the id query parameter to this value in your API// request.VideoIdstring `json:"videoId,omitempty"`// VideoPublishedAt: The date and time that the video was published to YouTube.VideoPublishedAtstring `json:"videoPublishedAt,omitempty"`// ForceSendFields is a list of field names (e.g. "EndAt") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndAt") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PlaylistItemContentDetails)MarshalJSON¶
func (sPlaylistItemContentDetails) MarshalJSON() ([]byte,error)
typePlaylistItemListResponse¶
type PlaylistItemListResponse struct {Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of playlist items that match the request criteria.Items []*PlaylistItem `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#playlistItemListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PlaylistItemListResponse)MarshalJSON¶
func (sPlaylistItemListResponse) MarshalJSON() ([]byte,error)
typePlaylistItemSnippet¶
type PlaylistItemSnippet struct {// ChannelId: The ID that YouTube uses to uniquely identify the user that added// the item to the playlist.ChannelIdstring `json:"channelId,omitempty"`// ChannelTitle: Channel title for the channel that the playlist item belongs// to.ChannelTitlestring `json:"channelTitle,omitempty"`// Description: The item's description.Descriptionstring `json:"description,omitempty"`// PlaylistId: The ID that YouTube uses to uniquely identify thGe playlist that// the playlist item is in.PlaylistIdstring `json:"playlistId,omitempty"`// Position: The order in which the item appears in the playlist. The value// uses a zero-based index, so the first item has a position of 0, the second// item has a position of 1, and so forth.Positionint64 `json:"position,omitempty"`// PublishedAt: The date and time that the item was added to the playlist.PublishedAtstring `json:"publishedAt,omitempty"`// ResourceId: The id object contains information that can be used to uniquely// identify the resource that is included in the playlist as the playlist item.ResourceId *ResourceId `json:"resourceId,omitempty"`// Thumbnails: A map of thumbnail images associated with the playlist item. For// each object in the map, the key is the name of the thumbnail image, and the// value is an object that contains other information about the thumbnail.Thumbnails *ThumbnailDetails `json:"thumbnails,omitempty"`// Title: The item's title.Titlestring `json:"title,omitempty"`// VideoOwnerChannelId: Channel id for the channel this video belongs to.VideoOwnerChannelIdstring `json:"videoOwnerChannelId,omitempty"`// VideoOwnerChannelTitle: Channel title for the channel this video belongs to.VideoOwnerChannelTitlestring `json:"videoOwnerChannelTitle,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PlaylistItemSnippet: Basic details about a playlist, including title,description and thumbnails. Basic details of a YouTube Playlist itemprovided by the author. Next ID: 15
func (PlaylistItemSnippet)MarshalJSON¶
func (sPlaylistItemSnippet) MarshalJSON() ([]byte,error)
typePlaylistItemStatus¶
type PlaylistItemStatus struct {// PrivacyStatus: This resource's privacy status.//// Possible values:// "public"// "unlisted"// "private"PrivacyStatusstring `json:"privacyStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "PrivacyStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PrivacyStatus") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PlaylistItemStatus: Information about the playlist item's privacy status.
func (PlaylistItemStatus)MarshalJSON¶
func (sPlaylistItemStatus) MarshalJSON() ([]byte,error)
typePlaylistItemsDeleteCall¶
type PlaylistItemsDeleteCall struct {// contains filtered or unexported fields}func (*PlaylistItemsDeleteCall)Context¶
func (c *PlaylistItemsDeleteCall) Context(ctxcontext.Context) *PlaylistItemsDeleteCall
Context sets the context to be used in this call's Do method.
func (*PlaylistItemsDeleteCall)Do¶
func (c *PlaylistItemsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.playlistItems.delete" call.
func (*PlaylistItemsDeleteCall)Fields¶
func (c *PlaylistItemsDeleteCall) Fields(s ...googleapi.Field) *PlaylistItemsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistItemsDeleteCall)Header¶
func (c *PlaylistItemsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistItemsDeleteCall)OnBehalfOfContentOwner¶
func (c *PlaylistItemsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistItemsDeleteCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typePlaylistItemsInsertCall¶
type PlaylistItemsInsertCall struct {// contains filtered or unexported fields}func (*PlaylistItemsInsertCall)Context¶
func (c *PlaylistItemsInsertCall) Context(ctxcontext.Context) *PlaylistItemsInsertCall
Context sets the context to be used in this call's Do method.
func (*PlaylistItemsInsertCall)Do¶
func (c *PlaylistItemsInsertCall) Do(opts ...googleapi.CallOption) (*PlaylistItem,error)
Do executes the "youtube.playlistItems.insert" call.Any non-2xx status code is an error. Response headers are in either*PlaylistItem.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*PlaylistItemsInsertCall)Fields¶
func (c *PlaylistItemsInsertCall) Fields(s ...googleapi.Field) *PlaylistItemsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistItemsInsertCall)Header¶
func (c *PlaylistItemsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistItemsInsertCall)OnBehalfOfContentOwner¶
func (c *PlaylistItemsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistItemsInsertCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typePlaylistItemsListCall¶
type PlaylistItemsListCall struct {// contains filtered or unexported fields}func (*PlaylistItemsListCall)Context¶
func (c *PlaylistItemsListCall) Context(ctxcontext.Context) *PlaylistItemsListCall
Context sets the context to be used in this call's Do method.
func (*PlaylistItemsListCall)Do¶
func (c *PlaylistItemsListCall) Do(opts ...googleapi.CallOption) (*PlaylistItemListResponse,error)
Do executes the "youtube.playlistItems.list" call.Any non-2xx status code is an error. Response headers are in either*PlaylistItemListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*PlaylistItemsListCall)Fields¶
func (c *PlaylistItemsListCall) Fields(s ...googleapi.Field) *PlaylistItemsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistItemsListCall)Header¶
func (c *PlaylistItemsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistItemsListCall)Id¶
func (c *PlaylistItemsListCall) Id(id ...string) *PlaylistItemsListCall
Id sets the optional parameter "id":
func (*PlaylistItemsListCall)IfNoneMatch¶
func (c *PlaylistItemsListCall) IfNoneMatch(entityTagstring) *PlaylistItemsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*PlaylistItemsListCall)MaxResults¶
func (c *PlaylistItemsListCall) MaxResults(maxResultsint64) *PlaylistItemsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*PlaylistItemsListCall)OnBehalfOfContentOwner¶
func (c *PlaylistItemsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistItemsListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*PlaylistItemsListCall)PageToken¶
func (c *PlaylistItemsListCall) PageToken(pageTokenstring) *PlaylistItemsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*PlaylistItemsListCall)Pages¶
func (c *PlaylistItemsListCall) Pages(ctxcontext.Context, f func(*PlaylistItemListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*PlaylistItemsListCall)PlaylistId¶
func (c *PlaylistItemsListCall) PlaylistId(playlistIdstring) *PlaylistItemsListCall
PlaylistId sets the optional parameter "playlistId": Return the playlistitems within the given playlist.
func (*PlaylistItemsListCall)VideoId¶
func (c *PlaylistItemsListCall) VideoId(videoIdstring) *PlaylistItemsListCall
VideoId sets the optional parameter "videoId": Return the playlist itemsassociated with the given video ID.
typePlaylistItemsService¶
type PlaylistItemsService struct {// contains filtered or unexported fields}funcNewPlaylistItemsService¶
func NewPlaylistItemsService(s *Service) *PlaylistItemsService
func (*PlaylistItemsService)Delete¶
func (r *PlaylistItemsService) Delete(idstring) *PlaylistItemsDeleteCall
Delete: Deletes a resource.
- id: .
func (*PlaylistItemsService)Insert¶
func (r *PlaylistItemsService) Insert(part []string, playlistitem *PlaylistItem) *PlaylistItemsInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include.
func (*PlaylistItemsService)List¶
func (r *PlaylistItemsService) List(part []string) *PlaylistItemsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or moreplaylistItem resource properties that the API response will include. Ifthe parameter identifies a property that contains child properties, thechild properties will be included in the response. For example, in aplaylistItem resource, the snippet property contains numerous fields,including the title, description, position, and resourceId properties. Assuch, if you set *part=snippet*, the API response will contain all ofthose properties.
func (*PlaylistItemsService)Update¶
func (r *PlaylistItemsService) Update(part []string, playlistitem *PlaylistItem) *PlaylistItemsUpdateCall
Update: Updates an existing resource.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. Note that this method willoverride the existing values for all of the mutable properties that arecontained in any parts that the parameter value specifies. For example, aplaylist item can specify a start time and end time, which identify thetimes portion of the video that should play when users watch the video inthe playlist. If your request is updating a playlist item that sets thesevalues, and the request's part parameter value includes the contentDetailspart, the playlist item's start and end times will be updated to whatevervalue the request body specifies. If the request body does not specifyvalues, the existing start and end times will be removed and replaced withthe default settings.
typePlaylistItemsUpdateCall¶
type PlaylistItemsUpdateCall struct {// contains filtered or unexported fields}func (*PlaylistItemsUpdateCall)Context¶
func (c *PlaylistItemsUpdateCall) Context(ctxcontext.Context) *PlaylistItemsUpdateCall
Context sets the context to be used in this call's Do method.
func (*PlaylistItemsUpdateCall)Do¶
func (c *PlaylistItemsUpdateCall) Do(opts ...googleapi.CallOption) (*PlaylistItem,error)
Do executes the "youtube.playlistItems.update" call.Any non-2xx status code is an error. Response headers are in either*PlaylistItem.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*PlaylistItemsUpdateCall)Fields¶
func (c *PlaylistItemsUpdateCall) Fields(s ...googleapi.Field) *PlaylistItemsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistItemsUpdateCall)Header¶
func (c *PlaylistItemsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistItemsUpdateCall)OnBehalfOfContentOwner¶
func (c *PlaylistItemsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistItemsUpdateCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typePlaylistListResponse¶
type PlaylistListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of playlists that match the request criteriaItems []*Playlist `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#playlistListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PlaylistListResponse)MarshalJSON¶
func (sPlaylistListResponse) MarshalJSON() ([]byte,error)
typePlaylistLocalization¶
type PlaylistLocalization struct {// Description: The localized strings for playlist's description.Descriptionstring `json:"description,omitempty"`// Title: The localized strings for playlist's title.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PlaylistLocalization: Playlist localization setting
func (PlaylistLocalization)MarshalJSON¶
func (sPlaylistLocalization) MarshalJSON() ([]byte,error)
typePlaylistPlayer¶
type PlaylistPlayer struct {// EmbedHtml: An <iframe> tag that embeds a player that will play the playlist.EmbedHtmlstring `json:"embedHtml,omitempty"`// ForceSendFields is a list of field names (e.g. "EmbedHtml") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EmbedHtml") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PlaylistPlayer)MarshalJSON¶
func (sPlaylistPlayer) MarshalJSON() ([]byte,error)
typePlaylistSnippet¶
type PlaylistSnippet struct {// ChannelId: The ID that YouTube uses to uniquely identify the channel that// published the playlist.ChannelIdstring `json:"channelId,omitempty"`// ChannelTitle: The channel title of the channel that the video belongs to.ChannelTitlestring `json:"channelTitle,omitempty"`// DefaultLanguage: The language of the playlist's default title and// description.DefaultLanguagestring `json:"defaultLanguage,omitempty"`// Description: The playlist's description.Descriptionstring `json:"description,omitempty"`// Localized: Localized title and description, read-only.Localized *PlaylistLocalization `json:"localized,omitempty"`// PublishedAt: The date and time that the playlist was created.PublishedAtstring `json:"publishedAt,omitempty"`// Tags: Keyword tags associated with the playlist.Tags []string `json:"tags,omitempty"`// ThumbnailVideoId: Note: if the playlist has a custom thumbnail, this field// will not be populated. The video id selected by the user that will be used// as the thumbnail of this playlist. This field defaults to the first publicly// viewable video in the playlist, if: 1. The user has never selected a video// to be the thumbnail of the playlist. 2. The user selects a video to be the// thumbnail, and then removes that video from the playlist. 3. The user// selects a non-owned video to be the thumbnail, but that video becomes// private, or gets deleted.ThumbnailVideoIdstring `json:"thumbnailVideoId,omitempty"`// Thumbnails: A map of thumbnail images associated with the playlist. For each// object in the map, the key is the name of the thumbnail image, and the value// is an object that contains other information about the thumbnail.Thumbnails *ThumbnailDetails `json:"thumbnails,omitempty"`// Title: The playlist's title.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PlaylistSnippet: Basic details about a playlist, including title,description and thumbnails.
func (PlaylistSnippet)MarshalJSON¶
func (sPlaylistSnippet) MarshalJSON() ([]byte,error)
typePlaylistStatus¶
type PlaylistStatus struct {// PodcastStatus: The playlist's podcast status.//// Possible values:// "enabled"// "disabled"PodcastStatusstring `json:"podcastStatus,omitempty"`// PrivacyStatus: The playlist's privacy status.//// Possible values:// "public"// "unlisted"// "private"PrivacyStatusstring `json:"privacyStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "PodcastStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PodcastStatus") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PlaylistStatus)MarshalJSON¶
func (sPlaylistStatus) MarshalJSON() ([]byte,error)
typePlaylistsDeleteCall¶
type PlaylistsDeleteCall struct {// contains filtered or unexported fields}func (*PlaylistsDeleteCall)Context¶
func (c *PlaylistsDeleteCall) Context(ctxcontext.Context) *PlaylistsDeleteCall
Context sets the context to be used in this call's Do method.
func (*PlaylistsDeleteCall)Do¶
func (c *PlaylistsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.playlists.delete" call.
func (*PlaylistsDeleteCall)Fields¶
func (c *PlaylistsDeleteCall) Fields(s ...googleapi.Field) *PlaylistsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistsDeleteCall)Header¶
func (c *PlaylistsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistsDeleteCall)OnBehalfOfContentOwner¶
func (c *PlaylistsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistsDeleteCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typePlaylistsInsertCall¶
type PlaylistsInsertCall struct {// contains filtered or unexported fields}func (*PlaylistsInsertCall)Context¶
func (c *PlaylistsInsertCall) Context(ctxcontext.Context) *PlaylistsInsertCall
Context sets the context to be used in this call's Do method.
func (*PlaylistsInsertCall)Do¶
func (c *PlaylistsInsertCall) Do(opts ...googleapi.CallOption) (*Playlist,error)
Do executes the "youtube.playlists.insert" call.Any non-2xx status code is an error. Response headers are in either*Playlist.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*PlaylistsInsertCall)Fields¶
func (c *PlaylistsInsertCall) Fields(s ...googleapi.Field) *PlaylistsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistsInsertCall)Header¶
func (c *PlaylistsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistsInsertCall)OnBehalfOfContentOwner¶
func (c *PlaylistsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistsInsertCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*PlaylistsInsertCall)OnBehalfOfContentOwnerChannel¶
func (c *PlaylistsInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *PlaylistsInsertCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
typePlaylistsListCall¶
type PlaylistsListCall struct {// contains filtered or unexported fields}func (*PlaylistsListCall)ChannelId¶
func (c *PlaylistsListCall) ChannelId(channelIdstring) *PlaylistsListCall
ChannelId sets the optional parameter "channelId": Return the playlistsowned by the specified channel ID.
func (*PlaylistsListCall)Context¶
func (c *PlaylistsListCall) Context(ctxcontext.Context) *PlaylistsListCall
Context sets the context to be used in this call's Do method.
func (*PlaylistsListCall)Do¶
func (c *PlaylistsListCall) Do(opts ...googleapi.CallOption) (*PlaylistListResponse,error)
Do executes the "youtube.playlists.list" call.Any non-2xx status code is an error. Response headers are in either*PlaylistListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*PlaylistsListCall)Fields¶
func (c *PlaylistsListCall) Fields(s ...googleapi.Field) *PlaylistsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistsListCall)Header¶
func (c *PlaylistsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistsListCall)Hl¶
func (c *PlaylistsListCall) Hl(hlstring) *PlaylistsListCall
Hl sets the optional parameter "hl": Return content in specified language
func (*PlaylistsListCall)Id¶
func (c *PlaylistsListCall) Id(id ...string) *PlaylistsListCall
Id sets the optional parameter "id": Return the playlists with the given IDsfor Stubby or Apiary.
func (*PlaylistsListCall)IfNoneMatch¶
func (c *PlaylistsListCall) IfNoneMatch(entityTagstring) *PlaylistsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*PlaylistsListCall)MaxResults¶
func (c *PlaylistsListCall) MaxResults(maxResultsint64) *PlaylistsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*PlaylistsListCall)Mine¶
func (c *PlaylistsListCall) Mine(minebool) *PlaylistsListCall
Mine sets the optional parameter "mine": Return the playlists owned by theauthenticated user.
func (*PlaylistsListCall)OnBehalfOfContentOwner¶
func (c *PlaylistsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistsListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*PlaylistsListCall)OnBehalfOfContentOwnerChannel¶
func (c *PlaylistsListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *PlaylistsListCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*PlaylistsListCall)PageToken¶
func (c *PlaylistsListCall) PageToken(pageTokenstring) *PlaylistsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*PlaylistsListCall)Pages¶
func (c *PlaylistsListCall) Pages(ctxcontext.Context, f func(*PlaylistListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typePlaylistsService¶
type PlaylistsService struct {// contains filtered or unexported fields}funcNewPlaylistsService¶
func NewPlaylistsService(s *Service) *PlaylistsService
func (*PlaylistsService)Delete¶
func (r *PlaylistsService) Delete(idstring) *PlaylistsDeleteCall
Delete: Deletes a resource.
- id: .
func (*PlaylistsService)Insert¶
func (r *PlaylistsService) Insert(part []string, playlist *Playlist) *PlaylistsInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include.
func (*PlaylistsService)List¶
func (r *PlaylistsService) List(part []string) *PlaylistsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or moreplaylist resource properties that the API response will include. If theparameter identifies a property that contains child properties, the childproperties will be included in the response. For example, in a playlistresource, the snippet property contains properties like author, title,description, tags, and timeCreated. As such, if you set *part=snippet*,the API response will contain all of those properties.
func (*PlaylistsService)Update¶
func (r *PlaylistsService) Update(part []string, playlist *Playlist) *PlaylistsUpdateCall
Update: Updates an existing resource.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. Note that this method willoverride the existing values for mutable properties that are contained inany parts that the request body specifies. For example, a playlist'sdescription is contained in the snippet part, which must be included inthe request body. If the request does not specify a value for thesnippet.description property, the playlist's existing description will bedeleted.
typePlaylistsUpdateCall¶
type PlaylistsUpdateCall struct {// contains filtered or unexported fields}func (*PlaylistsUpdateCall)Context¶
func (c *PlaylistsUpdateCall) Context(ctxcontext.Context) *PlaylistsUpdateCall
Context sets the context to be used in this call's Do method.
func (*PlaylistsUpdateCall)Do¶
func (c *PlaylistsUpdateCall) Do(opts ...googleapi.CallOption) (*Playlist,error)
Do executes the "youtube.playlists.update" call.Any non-2xx status code is an error. Response headers are in either*Playlist.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*PlaylistsUpdateCall)Fields¶
func (c *PlaylistsUpdateCall) Fields(s ...googleapi.Field) *PlaylistsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PlaylistsUpdateCall)Header¶
func (c *PlaylistsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PlaylistsUpdateCall)OnBehalfOfContentOwner¶
func (c *PlaylistsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *PlaylistsUpdateCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typePropertyValue¶
type PropertyValue struct {// Property: A property.Propertystring `json:"property,omitempty"`// Value: The property's value.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Property") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Property") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PropertyValue: A pair Property / Value.
func (PropertyValue)MarshalJSON¶
func (sPropertyValue) MarshalJSON() ([]byte,error)
typeRelatedEntity¶added inv0.29.0
type RelatedEntity struct {Entity *Entity `json:"entity,omitempty"`// ForceSendFields is a list of field names (e.g. "Entity") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Entity") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (RelatedEntity)MarshalJSON¶added inv0.29.0
func (sRelatedEntity) MarshalJSON() ([]byte,error)
typeResourceId¶
type ResourceId struct {// ChannelId: The ID that YouTube uses to uniquely identify the referred// resource, if that resource is a channel. This property is only present if// the resourceId.kind value is youtube#channel.ChannelIdstring `json:"channelId,omitempty"`// Kind: The type of the API resource.Kindstring `json:"kind,omitempty"`// PlaylistId: The ID that YouTube uses to uniquely identify the referred// resource, if that resource is a playlist. This property is only present if// the resourceId.kind value is youtube#playlist.PlaylistIdstring `json:"playlistId,omitempty"`// VideoId: The ID that YouTube uses to uniquely identify the referred// resource, if that resource is a video. This property is only present if the// resourceId.kind value is youtube#video.VideoIdstring `json:"videoId,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ResourceId: A resource id is a generic reference that points to anotherYouTube resource.
func (ResourceId)MarshalJSON¶
func (sResourceId) MarshalJSON() ([]byte,error)
typeSearchListCall¶
type SearchListCall struct {// contains filtered or unexported fields}func (*SearchListCall)ChannelId¶
func (c *SearchListCall) ChannelId(channelIdstring) *SearchListCall
ChannelId sets the optional parameter "channelId": Filter on resourcesbelonging to this channelId.
func (*SearchListCall)ChannelType¶
func (c *SearchListCall) ChannelType(channelTypestring) *SearchListCall
ChannelType sets the optional parameter "channelType": Add a filter on thechannel search.
Possible values:
"channelTypeUnspecified""any" - Return all channels."show" - Only retrieve shows.
func (*SearchListCall)Context¶
func (c *SearchListCall) Context(ctxcontext.Context) *SearchListCall
Context sets the context to be used in this call's Do method.
func (*SearchListCall)Do¶
func (c *SearchListCall) Do(opts ...googleapi.CallOption) (*SearchListResponse,error)
Do executes the "youtube.search.list" call.Any non-2xx status code is an error. Response headers are in either*SearchListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*SearchListCall)EventType¶
func (c *SearchListCall) EventType(eventTypestring) *SearchListCall
EventType sets the optional parameter "eventType": Filter on the livestreamstatus of the videos.
Possible values:
"none""upcoming" - The live broadcast is upcoming."live" - The live broadcast is active."completed" - The live broadcast has been completed.
func (*SearchListCall)Fields¶
func (c *SearchListCall) Fields(s ...googleapi.Field) *SearchListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SearchListCall)ForContentOwner¶
func (c *SearchListCall) ForContentOwner(forContentOwnerbool) *SearchListCall
ForContentOwner sets the optional parameter "forContentOwner": Search ownedby a content owner.
func (*SearchListCall)ForDeveloper¶
func (c *SearchListCall) ForDeveloper(forDeveloperbool) *SearchListCall
ForDeveloper sets the optional parameter "forDeveloper": Restrict the searchto only retrieve videos uploaded using the project id of the authenticateduser.
func (*SearchListCall)ForMine¶
func (c *SearchListCall) ForMine(forMinebool) *SearchListCall
ForMine sets the optional parameter "forMine": Search for the private videosof the authenticated user.
func (*SearchListCall)Header¶
func (c *SearchListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SearchListCall)IfNoneMatch¶
func (c *SearchListCall) IfNoneMatch(entityTagstring) *SearchListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*SearchListCall)Location¶
func (c *SearchListCall) Location(locationstring) *SearchListCall
Location sets the optional parameter "location": Filter on location of thevideo
func (*SearchListCall)LocationRadius¶
func (c *SearchListCall) LocationRadius(locationRadiusstring) *SearchListCall
LocationRadius sets the optional parameter "locationRadius": Filter ondistance from the location (specified above).
func (*SearchListCall)MaxResults¶
func (c *SearchListCall) MaxResults(maxResultsint64) *SearchListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*SearchListCall)OnBehalfOfContentOwner¶
func (c *SearchListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *SearchListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*SearchListCall)Order¶
func (c *SearchListCall) Order(orderstring) *SearchListCall
Order sets the optional parameter "order": Sort order of the results.
Possible values:
"searchSortUnspecified""date" - Resources are sorted in reverse chronological order based on the
date they were created.
"rating" - Resources are sorted from highest to lowest rating."viewCount" - Resources are sorted from highest to lowest number of views."relevance" (default) - Resources are sorted based on their relevance to
the search query. This is the default value for this parameter.
"title" - Resources are sorted alphabetically by title."videoCount" - Channels are sorted in descending order of their number of
uploaded videos.
func (*SearchListCall)PageToken¶
func (c *SearchListCall) PageToken(pageTokenstring) *SearchListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*SearchListCall)Pages¶
func (c *SearchListCall) Pages(ctxcontext.Context, f func(*SearchListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*SearchListCall)PublishedAfter¶
func (c *SearchListCall) PublishedAfter(publishedAfterstring) *SearchListCall
PublishedAfter sets the optional parameter "publishedAfter": Filter onresources published after this date.
func (*SearchListCall)PublishedBefore¶
func (c *SearchListCall) PublishedBefore(publishedBeforestring) *SearchListCall
PublishedBefore sets the optional parameter "publishedBefore": Filter onresources published before this date.
func (*SearchListCall)Q¶
func (c *SearchListCall) Q(qstring) *SearchListCall
Q sets the optional parameter "q": Textual search terms to match.
func (*SearchListCall)RegionCode¶
func (c *SearchListCall) RegionCode(regionCodestring) *SearchListCall
RegionCode sets the optional parameter "regionCode": Display the content asseen by viewers in this country.
func (*SearchListCall)RelevanceLanguage¶
func (c *SearchListCall) RelevanceLanguage(relevanceLanguagestring) *SearchListCall
RelevanceLanguage sets the optional parameter "relevanceLanguage": Returnresults relevant to this language.
func (*SearchListCall)SafeSearch¶
func (c *SearchListCall) SafeSearch(safeSearchstring) *SearchListCall
SafeSearch sets the optional parameter "safeSearch": Indicates whether thesearch results should include restricted content as well as standardcontent.
Possible values:
"safeSearchSettingUnspecified""none" - YouTube will not filter the search result set."moderate" (default) - YouTube will filter some content from search
results and, at the least, will filter content that is restricted in yourlocale. Based on their content, search results could be removed from searchresults or demoted in search results. This is the default parameter value.
"strict" - YouTube will try to exclude all restricted content from the
search result set. Based on their content, search results could be removedfrom search results or demoted in search results.
func (*SearchListCall)TopicId¶
func (c *SearchListCall) TopicId(topicIdstring) *SearchListCall
TopicId sets the optional parameter "topicId": Restrict results to aparticular topic.
func (*SearchListCall)Type¶
func (c *SearchListCall) Type(type_ ...string) *SearchListCall
Type sets the optional parameter "type": Restrict results to a particularset of resource types from One Platform.
func (*SearchListCall)VideoCaption¶
func (c *SearchListCall) VideoCaption(videoCaptionstring) *SearchListCall
VideoCaption sets the optional parameter "videoCaption": Filter on thepresence of captions on the videos.
Possible values:
"videoCaptionUnspecified""any" - Do not filter results based on caption availability."closedCaption" - Only include videos that have captions."none" - Only include videos that do not have captions.
func (*SearchListCall)VideoCategoryId¶
func (c *SearchListCall) VideoCategoryId(videoCategoryIdstring) *SearchListCall
VideoCategoryId sets the optional parameter "videoCategoryId": Filter onvideos in a specific category.
func (*SearchListCall)VideoDefinition¶
func (c *SearchListCall) VideoDefinition(videoDefinitionstring) *SearchListCall
VideoDefinition sets the optional parameter "videoDefinition": Filter on thedefinition of the videos.
Possible values:
"any" - Return all videos, regardless of their resolution."standard" - Only retrieve videos in standard definition."high" - Only retrieve HD videos.
func (*SearchListCall)VideoDimension¶
func (c *SearchListCall) VideoDimension(videoDimensionstring) *SearchListCall
VideoDimension sets the optional parameter "videoDimension": Filter on 3dvideos.
Possible values:
"any" - Include both 3D and non-3D videos in returned results. This is the
default value.
"2d" - Restrict search results to exclude 3D videos."3d" - Restrict search results to only include 3D videos.
func (*SearchListCall)VideoDuration¶
func (c *SearchListCall) VideoDuration(videoDurationstring) *SearchListCall
VideoDuration sets the optional parameter "videoDuration": Filter on theduration of the videos.
Possible values:
"videoDurationUnspecified""any" - Do not filter video search results based on their duration. This
is the default value.
"short" - Only include videos that are less than four minutes long."medium" - Only include videos that are between four and 20 minutes long
(inclusive).
"long" - Only include videos longer than 20 minutes.
func (*SearchListCall)VideoEmbeddable¶
func (c *SearchListCall) VideoEmbeddable(videoEmbeddablestring) *SearchListCall
VideoEmbeddable sets the optional parameter "videoEmbeddable": Filter onembeddable videos.
Possible values:
"videoEmbeddableUnspecified""any" - Return all videos, embeddable or not."true" - Only retrieve embeddable videos.
func (*SearchListCall)VideoLicense¶
func (c *SearchListCall) VideoLicense(videoLicensestring) *SearchListCall
VideoLicense sets the optional parameter "videoLicense": Filter on thelicense of the videos.
Possible values:
"any" - Return all videos, regardless of which license they have, that
match the query parameters.
"youtube" - Only return videos that have the standard YouTube license."creativeCommon" - Only return videos that have a Creative Commons
license. Users can reuse videos with this license in other videos that theycreate. Learn more.
func (*SearchListCall)VideoPaidProductPlacement¶added inv0.139.0
func (c *SearchListCall) VideoPaidProductPlacement(videoPaidProductPlacementstring) *SearchListCall
VideoPaidProductPlacement sets the optional parameter"videoPaidProductPlacement":
Possible values:
"videoPaidProductPlacementUnspecified""any" - Return all videos, paid product placement or not."true" - Restrict results to only videos with paid product placement.
func (*SearchListCall)VideoSyndicated¶
func (c *SearchListCall) VideoSyndicated(videoSyndicatedstring) *SearchListCall
VideoSyndicated sets the optional parameter "videoSyndicated": Filter onsyndicated videos.
Possible values:
"videoSyndicatedUnspecified""any" - Return all videos, syndicated or not."true" - Only retrieve syndicated videos.
func (*SearchListCall)VideoType¶
func (c *SearchListCall) VideoType(videoTypestring) *SearchListCall
VideoType sets the optional parameter "videoType": Filter on videos of aspecific type.
Possible values:
"videoTypeUnspecified""any" - Return all videos."movie" - Only retrieve movies."episode" - Only retrieve episodes of shows.
typeSearchListResponse¶
type SearchListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: Pagination information for token pagination.Items []*SearchResult `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#searchListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`RegionCodestring `json:"regionCode,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (SearchListResponse)MarshalJSON¶
func (sSearchListResponse) MarshalJSON() ([]byte,error)
typeSearchResult¶
type SearchResult struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The id object contains information that can be used to uniquely identify// the resource that matches the search request.Id *ResourceId `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#searchResult".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about a search result,// such as its title or description. For example, if the search result is a// video, then the title will be the video's title and the description will be// the video's description.Snippet *SearchResultSnippet `json:"snippet,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SearchResult: A search result contains information about a YouTube video,channel, or playlist that matches the search parameters specified in an APIrequest. While a search result points to a uniquely identifiable resource,like a video, it does not have its own persistent data.
func (SearchResult)MarshalJSON¶
func (sSearchResult) MarshalJSON() ([]byte,error)
typeSearchResultSnippet¶
type SearchResultSnippet struct {// ChannelId: The value that YouTube uses to uniquely identify the channel that// published the resource that the search result identifies.ChannelIdstring `json:"channelId,omitempty"`// ChannelTitle: The title of the channel that published the resource that the// search result identifies.ChannelTitlestring `json:"channelTitle,omitempty"`// Description: A description of the search result.Descriptionstring `json:"description,omitempty"`// LiveBroadcastContent: It indicates if the resource (video or channel) has// upcoming/active live broadcast content. Or it's "none" if there is not any// upcoming/active live broadcasts.//// Possible values:// "none"// "upcoming" - The live broadcast is upcoming.// "live" - The live broadcast is active.// "completed" - The live broadcast has been completed.LiveBroadcastContentstring `json:"liveBroadcastContent,omitempty"`// PublishedAt: The creation date and time of the resource that the search// result identifies.PublishedAtstring `json:"publishedAt,omitempty"`// Thumbnails: A map of thumbnail images associated with the search result. For// each object in the map, the key is the name of the thumbnail image, and the// value is an object that contains other information about the thumbnail.Thumbnails *ThumbnailDetails `json:"thumbnails,omitempty"`// Title: The title of the search result.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SearchResultSnippet: Basic details about a search result, including title,description and thumbnails of the item referenced by the search result.
func (SearchResultSnippet)MarshalJSON¶
func (sSearchResultSnippet) MarshalJSON() ([]byte,error)
typeSearchService¶
type SearchService struct {// contains filtered or unexported fields}funcNewSearchService¶
func NewSearchService(s *Service) *SearchService
func (*SearchService)List¶
func (r *SearchService) List(part []string) *SearchListCall
List: Retrieves a list of search resources
- part: The *part* parameter specifies a comma-separated list of one or moresearch resource properties that the API response will include. Set theparameter value to snippet.
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentAbuseReports *AbuseReportsServiceActivities *ActivitiesServiceCaptions *CaptionsServiceChannelBanners *ChannelBannersServiceChannelSections *ChannelSectionsServiceChannels *ChannelsServiceCommentThreads *CommentThreadsServiceComments *CommentsServiceI18nLanguages *I18nLanguagesServiceI18nRegions *I18nRegionsServiceLiveBroadcasts *LiveBroadcastsServiceLiveChatBans *LiveChatBansServiceLiveChatMessages *LiveChatMessagesServiceLiveChatModerators *LiveChatModeratorsServiceLiveStreams *LiveStreamsServiceMembers *MembersServiceMembershipsLevels *MembershipsLevelsServicePlaylistImages *PlaylistImagesServicePlaylistItems *PlaylistItemsServicePlaylists *PlaylistsServiceSearch *SearchServiceSubscriptions *SubscriptionsServiceSuperChatEvents *SuperChatEventsServiceTests *TestsServiceThirdPartyLinks *ThirdPartyLinksServiceThumbnails *ThumbnailsServiceVideoAbuseReportReasons *VideoAbuseReportReasonsServiceVideoCategories *VideoCategoriesServiceVideoTrainability *VideoTrainabilityServiceVideos *VideosServiceWatermarks *WatermarksServiceYoutube *YoutubeService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶added inv0.3.0
NewService creates a new Service.
typeSubscription¶
type Subscription struct {// ContentDetails: The contentDetails object contains basic statistics about// the subscription.ContentDetails *SubscriptionContentDetails `json:"contentDetails,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the subscription.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#subscription".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the subscription,// including its title and the channel that the user subscribed to.Snippet *SubscriptionSnippet `json:"snippet,omitempty"`// SubscriberSnippet: The subscriberSnippet object contains basic details about// the subscriber.SubscriberSnippet *SubscriptionSubscriberSnippet `json:"subscriberSnippet,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContentDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentDetails") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Subscription: A *subscription* resource contains information about a YouTubeuser subscription. A subscription notifies a user when new videos are addedto a channel or when another user takes one of several actions on YouTube,such as uploading a video, rating a video, or commenting on a video.
func (Subscription)MarshalJSON¶
func (sSubscription) MarshalJSON() ([]byte,error)
typeSubscriptionContentDetails¶
type SubscriptionContentDetails struct {// ActivityType: The type of activity this subscription is for (only uploads,// everything).//// Possible values:// "subscriptionActivityTypeUnspecified"// "all"// "uploads"ActivityTypestring `json:"activityType,omitempty"`// NewItemCount: The number of new items in the subscription since its content// was last read.NewItemCountint64 `json:"newItemCount,omitempty"`// TotalItemCount: The approximate number of items that the subscription points// to.TotalItemCountint64 `json:"totalItemCount,omitempty"`// ForceSendFields is a list of field names (e.g. "ActivityType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActivityType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SubscriptionContentDetails: Details about the content to witch asubscription refers.
func (SubscriptionContentDetails)MarshalJSON¶
func (sSubscriptionContentDetails) MarshalJSON() ([]byte,error)
typeSubscriptionListResponse¶
type SubscriptionListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of subscriptions that match the request criteria.Items []*Subscription `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#subscriptionListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (SubscriptionListResponse)MarshalJSON¶
func (sSubscriptionListResponse) MarshalJSON() ([]byte,error)
typeSubscriptionSnippet¶
type SubscriptionSnippet struct {// ChannelId: The ID that YouTube uses to uniquely identify the subscriber's// channel.ChannelIdstring `json:"channelId,omitempty"`// Description: The subscription's details.Descriptionstring `json:"description,omitempty"`// PublishedAt: The date and time that the subscription was created.PublishedAtstring `json:"publishedAt,omitempty"`// ResourceId: The id object contains information about the channel that the// user subscribed to.ResourceId *ResourceId `json:"resourceId,omitempty"`// Thumbnails: A map of thumbnail images associated with the video. For each// object in the map, the key is the name of the thumbnail image, and the value// is an object that contains other information about the thumbnail.Thumbnails *ThumbnailDetails `json:"thumbnails,omitempty"`// Title: The subscription's title.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SubscriptionSnippet: Basic details about a subscription, including title,description and thumbnails of the subscribed item.
func (SubscriptionSnippet)MarshalJSON¶
func (sSubscriptionSnippet) MarshalJSON() ([]byte,error)
typeSubscriptionSubscriberSnippet¶
type SubscriptionSubscriberSnippet struct {// ChannelId: The channel ID of the subscriber.ChannelIdstring `json:"channelId,omitempty"`// Description: The description of the subscriber.Descriptionstring `json:"description,omitempty"`// Thumbnails: Thumbnails for this subscriber.Thumbnails *ThumbnailDetails `json:"thumbnails,omitempty"`// Title: The title of the subscriber.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SubscriptionSubscriberSnippet: Basic details about a subscription'ssubscriber including title, description, channel ID and thumbnails.
func (SubscriptionSubscriberSnippet)MarshalJSON¶
func (sSubscriptionSubscriberSnippet) MarshalJSON() ([]byte,error)
typeSubscriptionsDeleteCall¶
type SubscriptionsDeleteCall struct {// contains filtered or unexported fields}func (*SubscriptionsDeleteCall)Context¶
func (c *SubscriptionsDeleteCall) Context(ctxcontext.Context) *SubscriptionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*SubscriptionsDeleteCall)Do¶
func (c *SubscriptionsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.subscriptions.delete" call.
func (*SubscriptionsDeleteCall)Fields¶
func (c *SubscriptionsDeleteCall) Fields(s ...googleapi.Field) *SubscriptionsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SubscriptionsDeleteCall)Header¶
func (c *SubscriptionsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSubscriptionsInsertCall¶
type SubscriptionsInsertCall struct {// contains filtered or unexported fields}func (*SubscriptionsInsertCall)Context¶
func (c *SubscriptionsInsertCall) Context(ctxcontext.Context) *SubscriptionsInsertCall
Context sets the context to be used in this call's Do method.
func (*SubscriptionsInsertCall)Do¶
func (c *SubscriptionsInsertCall) Do(opts ...googleapi.CallOption) (*Subscription,error)
Do executes the "youtube.subscriptions.insert" call.Any non-2xx status code is an error. Response headers are in either*Subscription.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SubscriptionsInsertCall)Fields¶
func (c *SubscriptionsInsertCall) Fields(s ...googleapi.Field) *SubscriptionsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SubscriptionsInsertCall)Header¶
func (c *SubscriptionsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSubscriptionsListCall¶
type SubscriptionsListCall struct {// contains filtered or unexported fields}func (*SubscriptionsListCall)ChannelId¶
func (c *SubscriptionsListCall) ChannelId(channelIdstring) *SubscriptionsListCall
ChannelId sets the optional parameter "channelId": Return the subscriptionsof the given channel owner.
func (*SubscriptionsListCall)Context¶
func (c *SubscriptionsListCall) Context(ctxcontext.Context) *SubscriptionsListCall
Context sets the context to be used in this call's Do method.
func (*SubscriptionsListCall)Do¶
func (c *SubscriptionsListCall) Do(opts ...googleapi.CallOption) (*SubscriptionListResponse,error)
Do executes the "youtube.subscriptions.list" call.Any non-2xx status code is an error. Response headers are in either*SubscriptionListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*SubscriptionsListCall)Fields¶
func (c *SubscriptionsListCall) Fields(s ...googleapi.Field) *SubscriptionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SubscriptionsListCall)ForChannelId¶
func (c *SubscriptionsListCall) ForChannelId(forChannelIdstring) *SubscriptionsListCall
ForChannelId sets the optional parameter "forChannelId": Return thesubscriptions to the subset of these channels that the authenticated user issubscribed to.
func (*SubscriptionsListCall)Header¶
func (c *SubscriptionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SubscriptionsListCall)Id¶
func (c *SubscriptionsListCall) Id(id ...string) *SubscriptionsListCall
Id sets the optional parameter "id": Return the subscriptions with the givenIDs for Stubby or Apiary.
func (*SubscriptionsListCall)IfNoneMatch¶
func (c *SubscriptionsListCall) IfNoneMatch(entityTagstring) *SubscriptionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*SubscriptionsListCall)MaxResults¶
func (c *SubscriptionsListCall) MaxResults(maxResultsint64) *SubscriptionsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*SubscriptionsListCall)Mine¶
func (c *SubscriptionsListCall) Mine(minebool) *SubscriptionsListCall
Mine sets the optional parameter "mine": Flag for returning thesubscriptions of the authenticated user.
func (*SubscriptionsListCall)MyRecentSubscribers¶
func (c *SubscriptionsListCall) MyRecentSubscribers(myRecentSubscribersbool) *SubscriptionsListCall
MyRecentSubscribers sets the optional parameter "myRecentSubscribers":
func (*SubscriptionsListCall)MySubscribers¶
func (c *SubscriptionsListCall) MySubscribers(mySubscribersbool) *SubscriptionsListCall
MySubscribers sets the optional parameter "mySubscribers": Return thesubscribers of the given channel owner.
func (*SubscriptionsListCall)OnBehalfOfContentOwner¶
func (c *SubscriptionsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *SubscriptionsListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*SubscriptionsListCall)OnBehalfOfContentOwnerChannel¶
func (c *SubscriptionsListCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *SubscriptionsListCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*SubscriptionsListCall)Order¶
func (c *SubscriptionsListCall) Order(orderstring) *SubscriptionsListCall
Order sets the optional parameter "order": The order of the returnedsubscriptions
Possible values:
"subscriptionOrderUnspecified""relevance" (default) - Sort by relevance."unread" - Sort by order of activity."alphabetical" - Sort alphabetically.
func (*SubscriptionsListCall)PageToken¶
func (c *SubscriptionsListCall) PageToken(pageTokenstring) *SubscriptionsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*SubscriptionsListCall)Pages¶
func (c *SubscriptionsListCall) Pages(ctxcontext.Context, f func(*SubscriptionListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeSubscriptionsService¶
type SubscriptionsService struct {// contains filtered or unexported fields}funcNewSubscriptionsService¶
func NewSubscriptionsService(s *Service) *SubscriptionsService
func (*SubscriptionsService)Delete¶
func (r *SubscriptionsService) Delete(idstring) *SubscriptionsDeleteCall
Delete: Deletes a resource.
- id: .
func (*SubscriptionsService)Insert¶
func (r *SubscriptionsService) Insert(part []string, subscription *Subscription) *SubscriptionsInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include.
func (*SubscriptionsService)List¶
func (r *SubscriptionsService) List(part []string) *SubscriptionsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or moresubscription resource properties that the API response will include. Ifthe parameter identifies a property that contains child properties, thechild properties will be included in the response. For example, in asubscription resource, the snippet property contains other properties,such as a display title for the subscription. If you set *part=snippet*,the API response will also contain all of those nested properties.
typeSuperChatEvent¶
type SuperChatEvent struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube assigns to uniquely identify the Super Chat event.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#superChatEvent".Kindstring `json:"kind,omitempty"`// Snippet: The `snippet` object contains basic details about the Super Chat// event.Snippet *SuperChatEventSnippet `json:"snippet,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SuperChatEvent: A `__superChatEvent__` resource represents a Super Chatpurchase on a YouTube channel.
func (SuperChatEvent)MarshalJSON¶
func (sSuperChatEvent) MarshalJSON() ([]byte,error)
typeSuperChatEventListResponse¶
type SuperChatEventListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of Super Chat purchases that match the request criteria.Items []*SuperChatEvent `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#superChatEventListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`PageInfo *PageInfo `json:"pageInfo,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (SuperChatEventListResponse)MarshalJSON¶
func (sSuperChatEventListResponse) MarshalJSON() ([]byte,error)
typeSuperChatEventSnippet¶
type SuperChatEventSnippet struct {// AmountMicros: The purchase amount, in micros of the purchase currency. e.g.,// 1 is represented as 1000000.AmountMicrosuint64 `json:"amountMicros,omitempty,string"`// ChannelId: Channel id where the event occurred.ChannelIdstring `json:"channelId,omitempty"`// CommentText: The text contents of the comment left by the user.CommentTextstring `json:"commentText,omitempty"`// CreatedAt: The date and time when the event occurred.CreatedAtstring `json:"createdAt,omitempty"`// Currency: The currency in which the purchase was made. ISO 4217.Currencystring `json:"currency,omitempty"`// DisplayString: A rendered string that displays the purchase amount and// currency (e.g., "$1.00"). The string is rendered for the given language.DisplayStringstring `json:"displayString,omitempty"`// IsSuperStickerEvent: True if this event is a Super Sticker event.IsSuperStickerEventbool `json:"isSuperStickerEvent,omitempty"`// MessageType: The tier for the paid message, which is based on the amount of// money spent to purchase the message.MessageTypeint64 `json:"messageType,omitempty"`// SuperStickerMetadata: If this event is a Super Sticker event, this field// will contain metadata about the Super Sticker.SuperStickerMetadata *SuperStickerMetadata `json:"superStickerMetadata,omitempty"`// SupporterDetails: Details about the supporter.SupporterDetails *ChannelProfileDetails `json:"supporterDetails,omitempty"`// ForceSendFields is a list of field names (e.g. "AmountMicros") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AmountMicros") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (SuperChatEventSnippet)MarshalJSON¶
func (sSuperChatEventSnippet) MarshalJSON() ([]byte,error)
typeSuperChatEventsListCall¶
type SuperChatEventsListCall struct {// contains filtered or unexported fields}func (*SuperChatEventsListCall)Context¶
func (c *SuperChatEventsListCall) Context(ctxcontext.Context) *SuperChatEventsListCall
Context sets the context to be used in this call's Do method.
func (*SuperChatEventsListCall)Do¶
func (c *SuperChatEventsListCall) Do(opts ...googleapi.CallOption) (*SuperChatEventListResponse,error)
Do executes the "youtube.superChatEvents.list" call.Any non-2xx status code is an error. Response headers are in either*SuperChatEventListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*SuperChatEventsListCall)Fields¶
func (c *SuperChatEventsListCall) Fields(s ...googleapi.Field) *SuperChatEventsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SuperChatEventsListCall)Header¶
func (c *SuperChatEventsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SuperChatEventsListCall)Hl¶
func (c *SuperChatEventsListCall) Hl(hlstring) *SuperChatEventsListCall
Hl sets the optional parameter "hl": Return rendered funding amounts inspecified language.
func (*SuperChatEventsListCall)IfNoneMatch¶
func (c *SuperChatEventsListCall) IfNoneMatch(entityTagstring) *SuperChatEventsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*SuperChatEventsListCall)MaxResults¶
func (c *SuperChatEventsListCall) MaxResults(maxResultsint64) *SuperChatEventsListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set.
func (*SuperChatEventsListCall)PageToken¶
func (c *SuperChatEventsListCall) PageToken(pageTokenstring) *SuperChatEventsListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved.
func (*SuperChatEventsListCall)Pages¶
func (c *SuperChatEventsListCall) Pages(ctxcontext.Context, f func(*SuperChatEventListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeSuperChatEventsService¶
type SuperChatEventsService struct {// contains filtered or unexported fields}funcNewSuperChatEventsService¶
func NewSuperChatEventsService(s *Service) *SuperChatEventsService
func (*SuperChatEventsService)List¶
func (r *SuperChatEventsService) List(part []string) *SuperChatEventsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies the superChatEvent resource partsthat the API response will include. This parameter is currently notsupported.
typeSuperStickerMetadata¶added inv0.2.0
type SuperStickerMetadata struct {// AltText: Internationalized alt text that describes the sticker image and any// animation associated with it.AltTextstring `json:"altText,omitempty"`// AltTextLanguage: Specifies the localization language in which the alt text// is returned.AltTextLanguagestring `json:"altTextLanguage,omitempty"`// StickerId: Unique identifier of the Super Sticker. This is a shorter form of// the alt_text that includes pack name and a recognizable characteristic of// the sticker.StickerIdstring `json:"stickerId,omitempty"`// ForceSendFields is a list of field names (e.g. "AltText") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AltText") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (SuperStickerMetadata)MarshalJSON¶added inv0.2.0
func (sSuperStickerMetadata) MarshalJSON() ([]byte,error)
typeTestItem¶added inv0.29.0
type TestItem struct {// Etag: Etag for the resource. Seehttps://en.wikipedia.org/wiki/HTTP_ETag.Etagstring `json:"etag,omitempty"`FeaturedPartbool `json:"featuredPart,omitempty"`Gaiaint64 `json:"gaia,omitempty,string"`Idstring `json:"id,omitempty"`Snippet *TestItemTestItemSnippet `json:"snippet,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (TestItem)MarshalJSON¶added inv0.29.0
typeTestItemTestItemSnippet¶added inv0.29.0
type TestItemTestItemSnippet struct {}typeTestsInsertCall¶added inv0.30.0
type TestsInsertCall struct {// contains filtered or unexported fields}func (*TestsInsertCall)Context¶added inv0.30.0
func (c *TestsInsertCall) Context(ctxcontext.Context) *TestsInsertCall
Context sets the context to be used in this call's Do method.
func (*TestsInsertCall)Do¶added inv0.30.0
func (c *TestsInsertCall) Do(opts ...googleapi.CallOption) (*TestItem,error)
Do executes the "youtube.tests.insert" call.Any non-2xx status code is an error. Response headers are in either*TestItem.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*TestsInsertCall)ExternalChannelId¶added inv0.57.0
func (c *TestsInsertCall) ExternalChannelId(externalChannelIdstring) *TestsInsertCall
ExternalChannelId sets the optional parameter "externalChannelId":
func (*TestsInsertCall)Fields¶added inv0.30.0
func (c *TestsInsertCall) Fields(s ...googleapi.Field) *TestsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*TestsInsertCall)Header¶added inv0.30.0
func (c *TestsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeTestsService¶added inv0.30.0
type TestsService struct {// contains filtered or unexported fields}funcNewTestsService¶added inv0.30.0
func NewTestsService(s *Service) *TestsService
func (*TestsService)Insert¶added inv0.30.0
func (r *TestsService) Insert(part []string, testitem *TestItem) *TestsInsertCall
Insert: POST method.
- part: .
typeThirdPartyLink¶added inv0.26.0
type ThirdPartyLink struct {// Etag: Etag of this resourceEtagstring `json:"etag,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#thirdPartyLink".Kindstring `json:"kind,omitempty"`// LinkingToken: The linking_token identifies a YouTube account and channel// with which the third party account is linked.LinkingTokenstring `json:"linkingToken,omitempty"`// Snippet: The snippet object contains basic details about the third- party// account link.Snippet *ThirdPartyLinkSnippet `json:"snippet,omitempty"`// Status: The status object contains information about the status of the link.Status *ThirdPartyLinkStatus `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ThirdPartyLink: A *third party account link* resource represents a linkbetween a YouTube account or a channel and an account on a third-partyservice.
func (ThirdPartyLink)MarshalJSON¶added inv0.26.0
func (sThirdPartyLink) MarshalJSON() ([]byte,error)
typeThirdPartyLinkListResponse¶added inv0.26.0
type ThirdPartyLinkListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`Items []*ThirdPartyLink `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#thirdPartyLinkListResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ThirdPartyLinkListResponse)MarshalJSON¶added inv0.26.0
func (sThirdPartyLinkListResponse) MarshalJSON() ([]byte,error)
typeThirdPartyLinkSnippet¶added inv0.26.0
type ThirdPartyLinkSnippet struct {// ChannelToStoreLink: Information specific to a link between a channel and a// store on a merchandising platform.ChannelToStoreLink *ChannelToStoreLinkDetails `json:"channelToStoreLink,omitempty"`// Type: Type of the link named after the entities that are being linked.//// Possible values:// "linkUnspecified"// "channelToStoreLink" - A link that is connecting (or about to connect) a// channel with a store on a merchandising platform in order to enable retail// commerce capabilities for that channel on YouTube.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "ChannelToStoreLink") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChannelToStoreLink") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ThirdPartyLinkSnippet: Basic information about a third party account link,including its type and type-specific information.
func (ThirdPartyLinkSnippet)MarshalJSON¶added inv0.26.0
func (sThirdPartyLinkSnippet) MarshalJSON() ([]byte,error)
typeThirdPartyLinkStatus¶added inv0.26.0
type ThirdPartyLinkStatus struct {// Possible values:// "unknown"// "failed"// "pending"// "linked"LinkStatusstring `json:"linkStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "LinkStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LinkStatus") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ThirdPartyLinkStatus: The third-party link status object containsinformation about the status of the link.
func (ThirdPartyLinkStatus)MarshalJSON¶added inv0.26.0
func (sThirdPartyLinkStatus) MarshalJSON() ([]byte,error)
typeThirdPartyLinksDeleteCall¶added inv0.29.0
type ThirdPartyLinksDeleteCall struct {// contains filtered or unexported fields}func (*ThirdPartyLinksDeleteCall)Context¶added inv0.29.0
func (c *ThirdPartyLinksDeleteCall) Context(ctxcontext.Context) *ThirdPartyLinksDeleteCall
Context sets the context to be used in this call's Do method.
func (*ThirdPartyLinksDeleteCall)Do¶added inv0.29.0
func (c *ThirdPartyLinksDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.thirdPartyLinks.delete" call.
func (*ThirdPartyLinksDeleteCall)ExternalChannelId¶added inv0.58.0
func (c *ThirdPartyLinksDeleteCall) ExternalChannelId(externalChannelIdstring) *ThirdPartyLinksDeleteCall
ExternalChannelId sets the optional parameter "externalChannelId": ChannelID to which changes should be applied, for delegation.
func (*ThirdPartyLinksDeleteCall)Fields¶added inv0.29.0
func (c *ThirdPartyLinksDeleteCall) Fields(s ...googleapi.Field) *ThirdPartyLinksDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ThirdPartyLinksDeleteCall)Header¶added inv0.29.0
func (c *ThirdPartyLinksDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ThirdPartyLinksDeleteCall)Part¶added inv0.29.0
func (c *ThirdPartyLinksDeleteCall) Part(part ...string) *ThirdPartyLinksDeleteCall
Part sets the optional parameter "part": Do not use. Required forcompatibility.
typeThirdPartyLinksInsertCall¶added inv0.29.0
type ThirdPartyLinksInsertCall struct {// contains filtered or unexported fields}func (*ThirdPartyLinksInsertCall)Context¶added inv0.29.0
func (c *ThirdPartyLinksInsertCall) Context(ctxcontext.Context) *ThirdPartyLinksInsertCall
Context sets the context to be used in this call's Do method.
func (*ThirdPartyLinksInsertCall)Do¶added inv0.29.0
func (c *ThirdPartyLinksInsertCall) Do(opts ...googleapi.CallOption) (*ThirdPartyLink,error)
Do executes the "youtube.thirdPartyLinks.insert" call.Any non-2xx status code is an error. Response headers are in either*ThirdPartyLink.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ThirdPartyLinksInsertCall)ExternalChannelId¶added inv0.58.0
func (c *ThirdPartyLinksInsertCall) ExternalChannelId(externalChannelIdstring) *ThirdPartyLinksInsertCall
ExternalChannelId sets the optional parameter "externalChannelId": ChannelID to which changes should be applied, for delegation.
func (*ThirdPartyLinksInsertCall)Fields¶added inv0.29.0
func (c *ThirdPartyLinksInsertCall) Fields(s ...googleapi.Field) *ThirdPartyLinksInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ThirdPartyLinksInsertCall)Header¶added inv0.29.0
func (c *ThirdPartyLinksInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeThirdPartyLinksListCall¶added inv0.26.0
type ThirdPartyLinksListCall struct {// contains filtered or unexported fields}func (*ThirdPartyLinksListCall)Context¶added inv0.26.0
func (c *ThirdPartyLinksListCall) Context(ctxcontext.Context) *ThirdPartyLinksListCall
Context sets the context to be used in this call's Do method.
func (*ThirdPartyLinksListCall)Do¶added inv0.26.0
func (c *ThirdPartyLinksListCall) Do(opts ...googleapi.CallOption) (*ThirdPartyLinkListResponse,error)
Do executes the "youtube.thirdPartyLinks.list" call.Any non-2xx status code is an error. Response headers are in either*ThirdPartyLinkListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ThirdPartyLinksListCall)ExternalChannelId¶added inv0.58.0
func (c *ThirdPartyLinksListCall) ExternalChannelId(externalChannelIdstring) *ThirdPartyLinksListCall
ExternalChannelId sets the optional parameter "externalChannelId": ChannelID to which changes should be applied, for delegation.
func (*ThirdPartyLinksListCall)Fields¶added inv0.26.0
func (c *ThirdPartyLinksListCall) Fields(s ...googleapi.Field) *ThirdPartyLinksListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ThirdPartyLinksListCall)Header¶added inv0.26.0
func (c *ThirdPartyLinksListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ThirdPartyLinksListCall)IfNoneMatch¶added inv0.26.0
func (c *ThirdPartyLinksListCall) IfNoneMatch(entityTagstring) *ThirdPartyLinksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ThirdPartyLinksListCall)LinkingToken¶added inv0.26.0
func (c *ThirdPartyLinksListCall) LinkingToken(linkingTokenstring) *ThirdPartyLinksListCall
LinkingToken sets the optional parameter "linkingToken": Get a third partylink with the given linking token.
func (*ThirdPartyLinksListCall)Type¶added inv0.26.0
func (c *ThirdPartyLinksListCall) Type(type_string) *ThirdPartyLinksListCall
Type sets the optional parameter "type": Get a third party link of the giventype.
Possible values:
"linkUnspecified""channelToStoreLink" - A link that is connecting (or about to connect) a
channel with a store on a merchandising platform in order to enable retailcommerce capabilities for that channel on YouTube.
typeThirdPartyLinksService¶added inv0.26.0
type ThirdPartyLinksService struct {// contains filtered or unexported fields}funcNewThirdPartyLinksService¶added inv0.26.0
func NewThirdPartyLinksService(s *Service) *ThirdPartyLinksService
func (*ThirdPartyLinksService)Delete¶added inv0.29.0
func (r *ThirdPartyLinksService) Delete(linkingTokenstring, type_string) *ThirdPartyLinksDeleteCall
Delete: Deletes a resource.
- linkingToken: Delete the partner links with the given linking token.- type: Type of the link to be deleted.
func (*ThirdPartyLinksService)Insert¶added inv0.29.0
func (r *ThirdPartyLinksService) Insert(part []string, thirdpartylink *ThirdPartyLink) *ThirdPartyLinksInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter specifies the thirdPartyLink resource partsthat the API request and response will include. Supported values arelinkingToken, status, and snippet.
func (*ThirdPartyLinksService)List¶added inv0.26.0
func (r *ThirdPartyLinksService) List(part []string) *ThirdPartyLinksListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies the thirdPartyLink resource partsthat the API response will include. Supported values are linkingToken,status, and snippet.
func (*ThirdPartyLinksService)Update¶added inv0.29.0
func (r *ThirdPartyLinksService) Update(part []string, thirdpartylink *ThirdPartyLink) *ThirdPartyLinksUpdateCall
Update: Updates an existing resource.
- part: The *part* parameter specifies the thirdPartyLink resource partsthat the API request and response will include. Supported values arelinkingToken, status, and snippet.
typeThirdPartyLinksUpdateCall¶added inv0.29.0
type ThirdPartyLinksUpdateCall struct {// contains filtered or unexported fields}func (*ThirdPartyLinksUpdateCall)Context¶added inv0.29.0
func (c *ThirdPartyLinksUpdateCall) Context(ctxcontext.Context) *ThirdPartyLinksUpdateCall
Context sets the context to be used in this call's Do method.
func (*ThirdPartyLinksUpdateCall)Do¶added inv0.29.0
func (c *ThirdPartyLinksUpdateCall) Do(opts ...googleapi.CallOption) (*ThirdPartyLink,error)
Do executes the "youtube.thirdPartyLinks.update" call.Any non-2xx status code is an error. Response headers are in either*ThirdPartyLink.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ThirdPartyLinksUpdateCall)ExternalChannelId¶added inv0.58.0
func (c *ThirdPartyLinksUpdateCall) ExternalChannelId(externalChannelIdstring) *ThirdPartyLinksUpdateCall
ExternalChannelId sets the optional parameter "externalChannelId": ChannelID to which changes should be applied, for delegation.
func (*ThirdPartyLinksUpdateCall)Fields¶added inv0.29.0
func (c *ThirdPartyLinksUpdateCall) Fields(s ...googleapi.Field) *ThirdPartyLinksUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ThirdPartyLinksUpdateCall)Header¶added inv0.29.0
func (c *ThirdPartyLinksUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeThumbnail¶
type Thumbnail struct {// Height: (Optional) Height of the thumbnail image.Heightint64 `json:"height,omitempty"`// Url: The thumbnail image's URL.Urlstring `json:"url,omitempty"`// Width: (Optional) Width of the thumbnail image.Widthint64 `json:"width,omitempty"`// ForceSendFields is a list of field names (e.g. "Height") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Height") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Thumbnail: A thumbnail is an image representing a YouTube resource.
func (Thumbnail)MarshalJSON¶
typeThumbnailDetails¶
type ThumbnailDetails struct {// Default: The default image for this resource.Default *Thumbnail `json:"default,omitempty"`// High: The high quality image for this resource.High *Thumbnail `json:"high,omitempty"`// Maxres: The maximum resolution quality image for this resource.Maxres *Thumbnail `json:"maxres,omitempty"`// Medium: The medium quality image for this resource.Medium *Thumbnail `json:"medium,omitempty"`// Standard: The standard quality image for this resource.Standard *Thumbnail `json:"standard,omitempty"`// ForceSendFields is a list of field names (e.g. "Default") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Default") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ThumbnailDetails: Internal representation of thumbnails for a YouTuberesource.
func (ThumbnailDetails)MarshalJSON¶
func (sThumbnailDetails) MarshalJSON() ([]byte,error)
typeThumbnailSetResponse¶
type ThumbnailSetResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of thumbnails.Items []*ThumbnailDetails `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#thumbnailSetResponse".Kindstring `json:"kind,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ThumbnailSetResponse)MarshalJSON¶
func (sThumbnailSetResponse) MarshalJSON() ([]byte,error)
typeThumbnailsService¶
type ThumbnailsService struct {// contains filtered or unexported fields}funcNewThumbnailsService¶
func NewThumbnailsService(s *Service) *ThumbnailsService
func (*ThumbnailsService)Set¶
func (r *ThumbnailsService) Set(videoIdstring) *ThumbnailsSetCall
Set: As this is not an insert in a strict sense (it supportsuploading/setting of a thumbnail for multiple videos, which doesn't resultin creation of a single resource), I use a custom verb here.
- videoId: Returns the Thumbnail with the given video IDs for Stubby orApiary.
typeThumbnailsSetCall¶
type ThumbnailsSetCall struct {// contains filtered or unexported fields}func (*ThumbnailsSetCall)Context¶
func (c *ThumbnailsSetCall) Context(ctxcontext.Context) *ThumbnailsSetCall
Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.
func (*ThumbnailsSetCall)Do¶
func (c *ThumbnailsSetCall) Do(opts ...googleapi.CallOption) (*ThumbnailSetResponse,error)
Do executes the "youtube.thumbnails.set" call.Any non-2xx status code is an error. Response headers are in either*ThumbnailSetResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ThumbnailsSetCall)Fields¶
func (c *ThumbnailsSetCall) Fields(s ...googleapi.Field) *ThumbnailsSetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ThumbnailsSetCall)Header¶
func (c *ThumbnailsSetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ThumbnailsSetCall)Media¶
func (c *ThumbnailsSetCall) Media(rio.Reader, options ...googleapi.MediaOption) *ThumbnailsSetCall
Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.
func (*ThumbnailsSetCall)OnBehalfOfContentOwner¶
func (c *ThumbnailsSetCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *ThumbnailsSetCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The actual CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
func (*ThumbnailsSetCall)ProgressUpdater¶
func (c *ThumbnailsSetCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *ThumbnailsSetCall
ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).
func (*ThumbnailsSetCall)ResumableMediadeprecated
func (c *ThumbnailsSetCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *ThumbnailsSetCall
ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.
typeTokenPagination¶
type TokenPagination struct {}TokenPagination: Stub token pagination template to suppress results.
typeVideo¶
type Video struct {// AgeGating: Age restriction details related to a video. This data can only be// retrieved by the video owner.AgeGating *VideoAgeGating `json:"ageGating,omitempty"`// ContentDetails: The contentDetails object contains information about the// video content, including the length of the video and its aspect ratio.ContentDetails *VideoContentDetails `json:"contentDetails,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// FileDetails: The fileDetails object encapsulates information about the video// file that was uploaded to YouTube, including the file's resolution,// duration, audio and video codecs, stream bitrates, and more. This data can// only be retrieved by the video owner.FileDetails *VideoFileDetails `json:"fileDetails,omitempty"`// Id: The ID that YouTube uses to uniquely identify the video.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#video".Kindstring `json:"kind,omitempty"`// LiveStreamingDetails: The liveStreamingDetails object contains metadata// about a live video broadcast. The object will only be present in a video// resource if the video is an upcoming, live, or completed live broadcast.LiveStreamingDetails *VideoLiveStreamingDetails `json:"liveStreamingDetails,omitempty"`// Localizations: The localizations object contains localized versions of the// basic details about the video, such as its title and description.Localizations map[string]VideoLocalization `json:"localizations,omitempty"`// MonetizationDetails: The monetizationDetails object encapsulates information// about the monetization status of the video.MonetizationDetails *VideoMonetizationDetails `json:"monetizationDetails,omitempty"`PaidProductPlacementDetails *VideoPaidProductPlacementDetails `json:"paidProductPlacementDetails,omitempty"`// Player: The player object contains information that you would use to play// the video in an embedded player.Player *VideoPlayer `json:"player,omitempty"`// ProcessingDetails: The processingDetails object encapsulates information// about YouTube's progress in processing the uploaded video file. The// properties in the object identify the current processing status and an// estimate of the time remaining until YouTube finishes processing the video.// This part also indicates whether different types of data or content, such as// file details or thumbnail images, are available for the video. The// processingProgress object is designed to be polled so that the video// uploaded can track the progress that YouTube has made in processing the// uploaded video file. This data can only be retrieved by the video owner.ProcessingDetails *VideoProcessingDetails `json:"processingDetails,omitempty"`// ProjectDetails: The projectDetails object contains information about the// project specific video metadata. b/157517979: This part was never populated// after it was added. However, it sees non-zero traffic because there is// generated client code in the wild that refers to it [1]. We keep this field// and do NOT remove it because otherwise V3 would return an error when this// part gets requested [2]. [1]//https://developers.google.com/resources/api-libraries/documentation/youtube/v3/csharp/latest/classGoogle_1_1Apis_1_1YouTube_1_1v3_1_1Data_1_1VideoProjectDetails.html// [2]//http://google3/video/youtube/src/python/servers/data_api/common.py?l=1565-1569&rcl=344141677ProjectDetails *VideoProjectDetails `json:"projectDetails,omitempty"`// RecordingDetails: The recordingDetails object encapsulates information about// the location, date and address where the video was recorded.RecordingDetails *VideoRecordingDetails `json:"recordingDetails,omitempty"`// Snippet: The snippet object contains basic details about the video, such as// its title, description, and category.Snippet *VideoSnippet `json:"snippet,omitempty"`// Statistics: The statistics object contains statistics about the video.Statistics *VideoStatistics `json:"statistics,omitempty"`// Status: The status object contains information about the video's uploading,// processing, and privacy statuses.Status *VideoStatus `json:"status,omitempty"`// Suggestions: The suggestions object encapsulates suggestions that identify// opportunities to improve the video quality or the metadata for the uploaded// video. This data can only be retrieved by the video owner.Suggestions *VideoSuggestions `json:"suggestions,omitempty"`// TopicDetails: The topicDetails object encapsulates information about// Freebase topics associated with the video.TopicDetails *VideoTopicDetails `json:"topicDetails,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AgeGating") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgeGating") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Video: A *video* resource represents a YouTube video.
func (Video)MarshalJSON¶
typeVideoAbuseReport¶
type VideoAbuseReport struct {// Comments: Additional comments regarding the abuse report.Commentsstring `json:"comments,omitempty"`// Language: The language that the content was viewed in.Languagestring `json:"language,omitempty"`// ReasonId: The high-level, or primary, reason that the content is abusive.// The value is an abuse report reason ID.ReasonIdstring `json:"reasonId,omitempty"`// SecondaryReasonId: The specific, or secondary, reason that this content is// abusive (if available). The value is an abuse report reason ID that is a// valid secondary reason for the primary reason.SecondaryReasonIdstring `json:"secondaryReasonId,omitempty"`// VideoId: The ID that YouTube uses to uniquely identify the video.VideoIdstring `json:"videoId,omitempty"`// ForceSendFields is a list of field names (e.g. "Comments") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Comments") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (VideoAbuseReport)MarshalJSON¶
func (sVideoAbuseReport) MarshalJSON() ([]byte,error)
typeVideoAbuseReportReason¶
type VideoAbuseReportReason struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID of this abuse report reason.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#videoAbuseReportReason".Kindstring `json:"kind,omitempty"`// Snippet: The `snippet` object contains basic details about the abuse report// reason.Snippet *VideoAbuseReportReasonSnippet `json:"snippet,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoAbuseReportReason: A `__videoAbuseReportReason__` resource identifies areason that a video could be reported as abusive. Video abuse report reasonsare used with `video.ReportAbuse`.
func (VideoAbuseReportReason)MarshalJSON¶
func (sVideoAbuseReportReason) MarshalJSON() ([]byte,error)
typeVideoAbuseReportReasonListResponse¶
type VideoAbuseReportReasonListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of valid abuse reasons that are used with `video.ReportAbuse`.Items []*VideoAbuseReportReason `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#videoAbuseReportReasonListResponse".Kindstring `json:"kind,omitempty"`// VisitorId: The `visitorId` identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (VideoAbuseReportReasonListResponse)MarshalJSON¶
func (sVideoAbuseReportReasonListResponse) MarshalJSON() ([]byte,error)
typeVideoAbuseReportReasonSnippet¶
type VideoAbuseReportReasonSnippet struct {// Label: The localized label belonging to this abuse report reason.Labelstring `json:"label,omitempty"`// SecondaryReasons: The secondary reasons associated with this reason, if any// are available. (There might be 0 or more.)SecondaryReasons []*VideoAbuseReportSecondaryReason `json:"secondaryReasons,omitempty"`// ForceSendFields is a list of field names (e.g. "Label") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Label") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoAbuseReportReasonSnippet: Basic details about a video category, such asits localized title.
func (VideoAbuseReportReasonSnippet)MarshalJSON¶
func (sVideoAbuseReportReasonSnippet) MarshalJSON() ([]byte,error)
typeVideoAbuseReportReasonsListCall¶
type VideoAbuseReportReasonsListCall struct {// contains filtered or unexported fields}func (*VideoAbuseReportReasonsListCall)Context¶
func (c *VideoAbuseReportReasonsListCall) Context(ctxcontext.Context) *VideoAbuseReportReasonsListCall
Context sets the context to be used in this call's Do method.
func (*VideoAbuseReportReasonsListCall)Do¶
func (c *VideoAbuseReportReasonsListCall) Do(opts ...googleapi.CallOption) (*VideoAbuseReportReasonListResponse,error)
Do executes the "youtube.videoAbuseReportReasons.list" call.Any non-2xx status code is an error. Response headers are in either*VideoAbuseReportReasonListResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*VideoAbuseReportReasonsListCall)Fields¶
func (c *VideoAbuseReportReasonsListCall) Fields(s ...googleapi.Field) *VideoAbuseReportReasonsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideoAbuseReportReasonsListCall)Header¶
func (c *VideoAbuseReportReasonsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*VideoAbuseReportReasonsListCall)Hl¶
func (c *VideoAbuseReportReasonsListCall) Hl(hlstring) *VideoAbuseReportReasonsListCall
Hl sets the optional parameter "hl":
func (*VideoAbuseReportReasonsListCall)IfNoneMatch¶
func (c *VideoAbuseReportReasonsListCall) IfNoneMatch(entityTagstring) *VideoAbuseReportReasonsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeVideoAbuseReportReasonsService¶
type VideoAbuseReportReasonsService struct {// contains filtered or unexported fields}funcNewVideoAbuseReportReasonsService¶
func NewVideoAbuseReportReasonsService(s *Service) *VideoAbuseReportReasonsService
func (*VideoAbuseReportReasonsService)List¶
func (r *VideoAbuseReportReasonsService) List(part []string) *VideoAbuseReportReasonsListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies the videoCategory resource parts thatthe API response will include. Supported values are id and snippet.
typeVideoAbuseReportSecondaryReason¶
type VideoAbuseReportSecondaryReason struct {// Id: The ID of this abuse report secondary reason.Idstring `json:"id,omitempty"`// Label: The localized label for this abuse report secondary reason.Labelstring `json:"label,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (VideoAbuseReportSecondaryReason)MarshalJSON¶
func (sVideoAbuseReportSecondaryReason) MarshalJSON() ([]byte,error)
typeVideoAgeGating¶
type VideoAgeGating struct {// AlcoholContent: Indicates whether or not the video has alcoholic beverage// content. Only users of legal purchasing age in a particular country, as// identified by ICAP, can view the content.AlcoholContentbool `json:"alcoholContent,omitempty"`// Restricted: Age-restricted trailers. For redband trailers and adult-rated// video-games. Only users aged 18+ can view the content. The the field is true// the content is restricted to viewers aged 18+. Otherwise The field won't be// present.Restrictedbool `json:"restricted,omitempty"`// VideoGameRating: Video game rating, if any.//// Possible values:// "anyone"// "m15Plus"// "m16Plus"// "m17Plus"VideoGameRatingstring `json:"videoGameRating,omitempty"`// ForceSendFields is a list of field names (e.g. "AlcoholContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AlcoholContent") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (VideoAgeGating)MarshalJSON¶
func (sVideoAgeGating) MarshalJSON() ([]byte,error)
typeVideoCategoriesListCall¶
type VideoCategoriesListCall struct {// contains filtered or unexported fields}func (*VideoCategoriesListCall)Context¶
func (c *VideoCategoriesListCall) Context(ctxcontext.Context) *VideoCategoriesListCall
Context sets the context to be used in this call's Do method.
func (*VideoCategoriesListCall)Do¶
func (c *VideoCategoriesListCall) Do(opts ...googleapi.CallOption) (*VideoCategoryListResponse,error)
Do executes the "youtube.videoCategories.list" call.Any non-2xx status code is an error. Response headers are in either*VideoCategoryListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*VideoCategoriesListCall)Fields¶
func (c *VideoCategoriesListCall) Fields(s ...googleapi.Field) *VideoCategoriesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideoCategoriesListCall)Header¶
func (c *VideoCategoriesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*VideoCategoriesListCall)Hl¶
func (c *VideoCategoriesListCall) Hl(hlstring) *VideoCategoriesListCall
Hl sets the optional parameter "hl":
func (*VideoCategoriesListCall)Id¶
func (c *VideoCategoriesListCall) Id(id ...string) *VideoCategoriesListCall
Id sets the optional parameter "id": Returns the video categories with thegiven IDs for Stubby or Apiary.
func (*VideoCategoriesListCall)IfNoneMatch¶
func (c *VideoCategoriesListCall) IfNoneMatch(entityTagstring) *VideoCategoriesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*VideoCategoriesListCall)RegionCode¶
func (c *VideoCategoriesListCall) RegionCode(regionCodestring) *VideoCategoriesListCall
RegionCode sets the optional parameter "regionCode":
typeVideoCategoriesService¶
type VideoCategoriesService struct {// contains filtered or unexported fields}funcNewVideoCategoriesService¶
func NewVideoCategoriesService(s *Service) *VideoCategoriesService
func (*VideoCategoriesService)List¶
func (r *VideoCategoriesService) List(part []string) *VideoCategoriesListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies the videoCategory resource propertiesthat the API response will include. Set the parameter value to snippet.
typeVideoCategory¶
type VideoCategory struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Id: The ID that YouTube uses to uniquely identify the video category.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#videoCategory".Kindstring `json:"kind,omitempty"`// Snippet: The snippet object contains basic details about the video category,// including its title.Snippet *VideoCategorySnippet `json:"snippet,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoCategory: A *videoCategory* resource identifies a category that hasbeen or could be associated with uploaded videos.
func (VideoCategory)MarshalJSON¶
func (sVideoCategory) MarshalJSON() ([]byte,error)
typeVideoCategoryListResponse¶
type VideoCategoryListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of video categories that can be associated with YouTube// videos. In this map, the video category ID is the map key, and its value is// the corresponding videoCategory resource.Items []*VideoCategory `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#videoCategoryListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (VideoCategoryListResponse)MarshalJSON¶
func (sVideoCategoryListResponse) MarshalJSON() ([]byte,error)
typeVideoCategorySnippet¶
type VideoCategorySnippet struct {Assignablebool `json:"assignable,omitempty"`// ChannelId: The YouTube channel that created the video category.ChannelIdstring `json:"channelId,omitempty"`// Title: The video category's title.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Assignable") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Assignable") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoCategorySnippet: Basic details about a video category, such as itslocalized title.
func (VideoCategorySnippet)MarshalJSON¶
func (sVideoCategorySnippet) MarshalJSON() ([]byte,error)
typeVideoContentDetails¶
type VideoContentDetails struct {// Caption: The value of captions indicates whether the video has captions or// not.//// Possible values:// "true"// "false"Captionstring `json:"caption,omitempty"`// ContentRating: Specifies the ratings that the video received under various// rating schemes.ContentRating *ContentRating `json:"contentRating,omitempty"`// CountryRestriction: The countryRestriction object contains information about// the countries where a video is (or is not) viewable.CountryRestriction *AccessPolicy `json:"countryRestriction,omitempty"`// Definition: The value of definition indicates whether the video is available// in high definition or only in standard definition.//// Possible values:// "sd" - sd// "hd" - hdDefinitionstring `json:"definition,omitempty"`// Dimension: The value of dimension indicates whether the video is available// in 3D or in 2D.Dimensionstring `json:"dimension,omitempty"`// Duration: The length of the video. The tag value is an ISO 8601 duration in// the format PT#M#S, in which the letters PT indicate that the value specifies// a period of time, and the letters M and S refer to length in minutes and// seconds, respectively. The # characters preceding the M and S letters are// both integers that specify the number of minutes (or seconds) of the video.// For example, a value of PT15M51S indicates that the video is 15 minutes and// 51 seconds long.Durationstring `json:"duration,omitempty"`// HasCustomThumbnail: Indicates whether the video uploader has provided a// custom thumbnail image for the video. This property is only visible to the// video uploader.HasCustomThumbnailbool `json:"hasCustomThumbnail,omitempty"`// LicensedContent: The value of is_license_content indicates whether the video// is licensed content.LicensedContentbool `json:"licensedContent,omitempty"`// Projection: Specifies the projection format of the video.//// Possible values:// "rectangular"// "360"Projectionstring `json:"projection,omitempty"`// RegionRestriction: The regionRestriction object contains information about// the countries where a video is (or is not) viewable. The object will contain// either the contentDetails.regionRestriction.allowed property or the// contentDetails.regionRestriction.blocked property.RegionRestriction *VideoContentDetailsRegionRestriction `json:"regionRestriction,omitempty"`// ForceSendFields is a list of field names (e.g. "Caption") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Caption") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoContentDetails: Details about the content of a YouTube Video.
func (VideoContentDetails)MarshalJSON¶
func (sVideoContentDetails) MarshalJSON() ([]byte,error)
typeVideoContentDetailsRegionRestriction¶
type VideoContentDetailsRegionRestriction struct {// Allowed: A list of region codes that identify countries where the video is// viewable. If this property is present and a country is not listed in its// value, then the video is blocked from appearing in that country. If this// property is present and contains an empty list, the video is blocked in all// countries.Allowed []string `json:"allowed,omitempty"`// Blocked: A list of region codes that identify countries where the video is// blocked. If this property is present and a country is not listed in its// value, then the video is viewable in that country. If this property is// present and contains an empty list, the video is viewable in all countries.Blocked []string `json:"blocked,omitempty"`// ForceSendFields is a list of field names (e.g. "Allowed") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Allowed") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoContentDetailsRegionRestriction: DEPRECATED Region restriction of thevideo.
func (VideoContentDetailsRegionRestriction)MarshalJSON¶
func (sVideoContentDetailsRegionRestriction) MarshalJSON() ([]byte,error)
typeVideoFileDetails¶
type VideoFileDetails struct {// AudioStreams: A list of audio streams contained in the uploaded video file.// Each item in the list contains detailed metadata about an audio stream.AudioStreams []*VideoFileDetailsAudioStream `json:"audioStreams,omitempty"`// BitrateBps: The uploaded video file's combined (video and audio) bitrate in// bits per second.BitrateBpsuint64 `json:"bitrateBps,omitempty,string"`// Container: The uploaded video file's container format.Containerstring `json:"container,omitempty"`// CreationTime: The date and time when the uploaded video file was created.// The value is specified in ISO 8601 format. Currently, the following ISO 8601// formats are supported: - Date only: YYYY-MM-DD - Naive time:// YYYY-MM-DDTHH:MM:SS - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MMCreationTimestring `json:"creationTime,omitempty"`// DurationMs: The length of the uploaded video in milliseconds.DurationMsuint64 `json:"durationMs,omitempty,string"`// FileName: The uploaded file's name. This field is present whether a video// file or another type of file was uploaded.FileNamestring `json:"fileName,omitempty"`// FileSize: The uploaded file's size in bytes. This field is present whether a// video file or another type of file was uploaded.FileSizeuint64 `json:"fileSize,omitempty,string"`// FileType: The uploaded file's type as detected by YouTube's video processing// engine. Currently, YouTube only processes video files, but this field is// present whether a video file or another type of file was uploaded.//// Possible values:// "video" - Known video file (e.g., an MP4 file).// "audio" - Audio only file (e.g., an MP3 file).// "image" - Image file (e.g., a JPEG image).// "archive" - Archive file (e.g., a ZIP archive).// "document" - Document or text file (e.g., MS Word document).// "project" - Movie project file (e.g., Microsoft Windows Movie Maker// project).// "other" - Other non-video file type.FileTypestring `json:"fileType,omitempty"`// VideoStreams: A list of video streams contained in the uploaded video file.// Each item in the list contains detailed metadata about a video stream.VideoStreams []*VideoFileDetailsVideoStream `json:"videoStreams,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioStreams") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AudioStreams") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoFileDetails: Describes original video file properties, includingtechnical details about audio and video streams, but also metadatainformation like content length, digitization time, or geotagginginformation.
func (VideoFileDetails)MarshalJSON¶
func (sVideoFileDetails) MarshalJSON() ([]byte,error)
typeVideoFileDetailsAudioStream¶
type VideoFileDetailsAudioStream struct {// BitrateBps: The audio stream's bitrate, in bits per second.BitrateBpsuint64 `json:"bitrateBps,omitempty,string"`// ChannelCount: The number of audio channels that the stream contains.ChannelCountint64 `json:"channelCount,omitempty"`// Codec: The audio codec that the stream uses.Codecstring `json:"codec,omitempty"`// Vendor: A value that uniquely identifies a video vendor. Typically, the// value is a four-letter vendor code.Vendorstring `json:"vendor,omitempty"`// ForceSendFields is a list of field names (e.g. "BitrateBps") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BitrateBps") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoFileDetailsAudioStream: Information about an audio stream.
func (VideoFileDetailsAudioStream)MarshalJSON¶
func (sVideoFileDetailsAudioStream) MarshalJSON() ([]byte,error)
typeVideoFileDetailsVideoStream¶
type VideoFileDetailsVideoStream struct {// AspectRatio: The video content's display aspect ratio, which specifies the// aspect ratio in which the video should be displayed.AspectRatiofloat64 `json:"aspectRatio,omitempty"`// BitrateBps: The video stream's bitrate, in bits per second.BitrateBpsuint64 `json:"bitrateBps,omitempty,string"`// Codec: The video codec that the stream uses.Codecstring `json:"codec,omitempty"`// FrameRateFps: The video stream's frame rate, in frames per second.FrameRateFpsfloat64 `json:"frameRateFps,omitempty"`// HeightPixels: The encoded video content's height in pixels.HeightPixelsint64 `json:"heightPixels,omitempty"`// Rotation: The amount that YouTube needs to rotate the original source// content to properly display the video.//// Possible values:// "none"// "clockwise"// "upsideDown"// "counterClockwise"// "other"Rotationstring `json:"rotation,omitempty"`// Vendor: A value that uniquely identifies a video vendor. Typically, the// value is a four-letter vendor code.Vendorstring `json:"vendor,omitempty"`// WidthPixels: The encoded video content's width in pixels. You can calculate// the video's encoding aspect ratio as width_pixels / height_pixels.WidthPixelsint64 `json:"widthPixels,omitempty"`// ForceSendFields is a list of field names (e.g. "AspectRatio") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AspectRatio") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoFileDetailsVideoStream: Information about a video stream.
func (VideoFileDetailsVideoStream)MarshalJSON¶
func (sVideoFileDetailsVideoStream) MarshalJSON() ([]byte,error)
func (*VideoFileDetailsVideoStream)UnmarshalJSON¶
func (s *VideoFileDetailsVideoStream) UnmarshalJSON(data []byte)error
typeVideoGetRatingResponse¶
type VideoGetRatingResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`// Items: A list of ratings that match the request criteria.Items []*VideoRating `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#videoGetRatingResponse".Kindstring `json:"kind,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (VideoGetRatingResponse)MarshalJSON¶
func (sVideoGetRatingResponse) MarshalJSON() ([]byte,error)
typeVideoListResponse¶
type VideoListResponse struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// EventId: Serialized EventId of the request which produced this response.EventIdstring `json:"eventId,omitempty"`Items []*Video `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#videoListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the next page in the result set.NextPageTokenstring `json:"nextPageToken,omitempty"`// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// PrevPageToken: The token that can be used as the value of the pageToken// parameter to retrieve the previous page in the result set.PrevPageTokenstring `json:"prevPageToken,omitempty"`TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// VisitorId: The visitorId identifies the visitor.VisitorIdstring `json:"visitorId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (VideoListResponse)MarshalJSON¶
func (sVideoListResponse) MarshalJSON() ([]byte,error)
typeVideoLiveStreamingDetails¶
type VideoLiveStreamingDetails struct {// ActiveLiveChatId: The ID of the currently active live chat attached to this// video. This field is filled only if the video is a currently live broadcast// that has live chat. Once the broadcast transitions to complete this field// will be removed and the live chat closed down. For persistent broadcasts// that live chat id will no longer be tied to this video but rather to the new// video being displayed at the persistent page.ActiveLiveChatIdstring `json:"activeLiveChatId,omitempty"`// ActualEndTime: The time that the broadcast actually ended. This value will// not be available until the broadcast is over.ActualEndTimestring `json:"actualEndTime,omitempty"`// ActualStartTime: The time that the broadcast actually started. This value// will not be available until the broadcast begins.ActualStartTimestring `json:"actualStartTime,omitempty"`// ConcurrentViewers: The number of viewers currently watching the broadcast.// The property and its value will be present if the broadcast has current// viewers and the broadcast owner has not hidden the viewcount for the video.// Note that YouTube stops tracking the number of concurrent viewers for a// broadcast when the broadcast ends. So, this property would not identify the// number of viewers watching an archived video of a live broadcast that// already ended.ConcurrentViewersuint64 `json:"concurrentViewers,omitempty,string"`// ScheduledEndTime: The time that the broadcast is scheduled to end. If the// value is empty or the property is not present, then the broadcast is// scheduled to continue indefinitely.ScheduledEndTimestring `json:"scheduledEndTime,omitempty"`// ScheduledStartTime: The time that the broadcast is scheduled to begin.ScheduledStartTimestring `json:"scheduledStartTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ActiveLiveChatId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActiveLiveChatId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoLiveStreamingDetails: Details about the live streaming metadata.
func (VideoLiveStreamingDetails)MarshalJSON¶
func (sVideoLiveStreamingDetails) MarshalJSON() ([]byte,error)
typeVideoLocalization¶
type VideoLocalization struct {// Description: Localized version of the video's description.Descriptionstring `json:"description,omitempty"`// Title: Localized version of the video's title.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoLocalization: Localized versions of certain video properties (e.g.title).
func (VideoLocalization)MarshalJSON¶
func (sVideoLocalization) MarshalJSON() ([]byte,error)
typeVideoMonetizationDetails¶
type VideoMonetizationDetails struct {// Access: The value of access indicates whether the video can be monetized or// not.Access *AccessPolicy `json:"access,omitempty"`// ForceSendFields is a list of field names (e.g. "Access") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Access") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoMonetizationDetails: Details about monetization of a YouTube Video.
func (VideoMonetizationDetails)MarshalJSON¶
func (sVideoMonetizationDetails) MarshalJSON() ([]byte,error)
typeVideoPaidProductPlacementDetails¶added inv0.198.0
type VideoPaidProductPlacementDetails struct {// HasPaidProductPlacement: This boolean represents whether the video contains// Paid Product Placement, Studio equivalent://https://screenshot.googleplex.com/4Me79DE6AfT2ktp.pngHasPaidProductPlacementbool `json:"hasPaidProductPlacement,omitempty"`// ForceSendFields is a list of field names (e.g. "HasPaidProductPlacement") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HasPaidProductPlacement") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoPaidProductPlacementDetails: Details about paid content, such as paidproduct placement, sponsorships or endorsement, contained in a YouTube videoand a method to inform viewers of paid promotion. This data can only beretrieved by the video owner.
func (VideoPaidProductPlacementDetails)MarshalJSON¶added inv0.198.0
func (sVideoPaidProductPlacementDetails) MarshalJSON() ([]byte,error)
typeVideoPlayer¶
type VideoPlayer struct {EmbedHeightint64 `json:"embedHeight,omitempty,string"`// EmbedHtml: An <iframe> tag that embeds a player that will play the video.EmbedHtmlstring `json:"embedHtml,omitempty"`// EmbedWidth: The embed widthEmbedWidthint64 `json:"embedWidth,omitempty,string"`// ForceSendFields is a list of field names (e.g. "EmbedHeight") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EmbedHeight") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoPlayer: Player to be used for a video playback.
func (VideoPlayer)MarshalJSON¶
func (sVideoPlayer) MarshalJSON() ([]byte,error)
typeVideoProcessingDetails¶
type VideoProcessingDetails struct {// EditorSuggestionsAvailability: This value indicates whether video editing// suggestions, which might improve video quality or the playback experience,// are available for the video. You can retrieve these suggestions by// requesting the suggestions part in your videos.list() request.EditorSuggestionsAvailabilitystring `json:"editorSuggestionsAvailability,omitempty"`// FileDetailsAvailability: This value indicates whether file details are// available for the uploaded video. You can retrieve a video's file details by// requesting the fileDetails part in your videos.list() request.FileDetailsAvailabilitystring `json:"fileDetailsAvailability,omitempty"`// ProcessingFailureReason: The reason that YouTube failed to process the// video. This property will only have a value if the processingStatus// property's value is failed.//// Possible values:// "uploadFailed"// "transcodeFailed"// "streamingFailed"// "other"ProcessingFailureReasonstring `json:"processingFailureReason,omitempty"`// ProcessingIssuesAvailability: This value indicates whether the video// processing engine has generated suggestions that might improve YouTube's// ability to process the the video, warnings that explain video processing// problems, or errors that cause video processing problems. You can retrieve// these suggestions by requesting the suggestions part in your videos.list()// request.ProcessingIssuesAvailabilitystring `json:"processingIssuesAvailability,omitempty"`// ProcessingProgress: The processingProgress object contains information about// the progress YouTube has made in processing the video. The values are really// only relevant if the video's processing status is processing.ProcessingProgress *VideoProcessingDetailsProcessingProgress `json:"processingProgress,omitempty"`// ProcessingStatus: The video's processing status. This value indicates// whether YouTube was able to process the video or if the video is still being// processed.//// Possible values:// "processing"// "succeeded"// "failed"// "terminated"ProcessingStatusstring `json:"processingStatus,omitempty"`// TagSuggestionsAvailability: This value indicates whether keyword (tag)// suggestions are available for the video. Tags can be added to a video's// metadata to make it easier for other users to find the video. You can// retrieve these suggestions by requesting the suggestions part in your// videos.list() request.TagSuggestionsAvailabilitystring `json:"tagSuggestionsAvailability,omitempty"`// ThumbnailsAvailability: This value indicates whether thumbnail images have// been generated for the video.ThumbnailsAvailabilitystring `json:"thumbnailsAvailability,omitempty"`// ForceSendFields is a list of field names (e.g.// "EditorSuggestionsAvailability") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EditorSuggestionsAvailability")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoProcessingDetails: Describes processing status and progress andavailability of some other Video resource parts.
func (VideoProcessingDetails)MarshalJSON¶
func (sVideoProcessingDetails) MarshalJSON() ([]byte,error)
typeVideoProcessingDetailsProcessingProgress¶
type VideoProcessingDetailsProcessingProgress struct {// PartsProcessed: The number of parts of the video that YouTube has already// processed. You can estimate the percentage of the video that YouTube has// already processed by calculating: 100 * parts_processed / parts_total Note// that since the estimated number of parts could increase without a// corresponding increase in the number of parts that have already been// processed, it is possible that the calculated progress could periodically// decrease while YouTube processes a video.PartsProcesseduint64 `json:"partsProcessed,omitempty,string"`// PartsTotal: An estimate of the total number of parts that need to be// processed for the video. The number may be updated with more precise// estimates while YouTube processes the video.PartsTotaluint64 `json:"partsTotal,omitempty,string"`// TimeLeftMs: An estimate of the amount of time, in millseconds, that YouTube// needs to finish processing the video.TimeLeftMsuint64 `json:"timeLeftMs,omitempty,string"`// ForceSendFields is a list of field names (e.g. "PartsProcessed") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PartsProcessed") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoProcessingDetailsProcessingProgress: Video processing progress andcompletion time estimate.
func (VideoProcessingDetailsProcessingProgress)MarshalJSON¶
func (sVideoProcessingDetailsProcessingProgress) MarshalJSON() ([]byte,error)
typeVideoProjectDetails¶
type VideoProjectDetails struct {}VideoProjectDetails: DEPRECATED. b/157517979: This part was never populatedafter it was added. However, it sees non-zero traffic because there isgenerated client code in the wild that refers to it [1]. We keep this fieldand do NOT remove it because otherwise V3 would return an error when thispart gets requested [2]. [1]https://developers.google.com/resources/api-libraries/documentation/youtube/v3/csharp/latest/classGoogle_1_1Apis_1_1YouTube_1_1v3_1_1Data_1_1VideoProjectDetails.html[2]http://google3/video/youtube/src/python/servers/data_api/common.py?l=1565-1569&rcl=344141677
typeVideoRating¶
type VideoRating struct {// Rating: Rating of a video.//// Possible values:// "none"// "like" - The entity is liked.// "dislike" - The entity is disliked.Ratingstring `json:"rating,omitempty"`// VideoId: The ID that YouTube uses to uniquely identify the video.VideoIdstring `json:"videoId,omitempty"`// ForceSendFields is a list of field names (e.g. "Rating") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Rating") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoRating: Basic details about rating of a video.
func (VideoRating)MarshalJSON¶
func (sVideoRating) MarshalJSON() ([]byte,error)
typeVideoRecordingDetails¶
type VideoRecordingDetails struct {// Location: The geolocation information associated with the video.Location *GeoPoint `json:"location,omitempty"`// LocationDescription: The text description of the location where the video// was recorded.LocationDescriptionstring `json:"locationDescription,omitempty"`// RecordingDate: The date and time when the video was recorded.RecordingDatestring `json:"recordingDate,omitempty"`// ForceSendFields is a list of field names (e.g. "Location") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Location") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoRecordingDetails: Recording information associated with the video.
func (VideoRecordingDetails)MarshalJSON¶
func (sVideoRecordingDetails) MarshalJSON() ([]byte,error)
typeVideoSnippet¶
type VideoSnippet struct {// CategoryId: The YouTube video category associated with the video.CategoryIdstring `json:"categoryId,omitempty"`// ChannelId: The ID that YouTube uses to uniquely identify the channel that// the video was uploaded to.ChannelIdstring `json:"channelId,omitempty"`// ChannelTitle: Channel title for the channel that the video belongs to.ChannelTitlestring `json:"channelTitle,omitempty"`// DefaultAudioLanguage: The default_audio_language property specifies the// language spoken in the video's default audio track.DefaultAudioLanguagestring `json:"defaultAudioLanguage,omitempty"`// DefaultLanguage: The language of the videos's default snippet.DefaultLanguagestring `json:"defaultLanguage,omitempty"`// Description: The video's description. @mutable youtube.videos.insert// youtube.videos.updateDescriptionstring `json:"description,omitempty"`// LiveBroadcastContent: Indicates if the video is an upcoming/active live// broadcast. Or it's "none" if the video is not an upcoming/active live// broadcast.//// Possible values:// "none"// "upcoming" - The live broadcast is upcoming.// "live" - The live broadcast is active.// "completed" - The live broadcast has been completed.LiveBroadcastContentstring `json:"liveBroadcastContent,omitempty"`// Localized: Localized snippet selected with the hl parameter. If no such// localization exists, this field is populated with the default snippet.// (Read-only)Localized *VideoLocalization `json:"localized,omitempty"`// PublishedAt: The date and time when the video was uploaded.PublishedAtstring `json:"publishedAt,omitempty"`// Tags: A list of keyword tags associated with the video. Tags may contain// spaces.Tags []string `json:"tags,omitempty"`// Thumbnails: A map of thumbnail images associated with the video. For each// object in the map, the key is the name of the thumbnail image, and the value// is an object that contains other information about the thumbnail.Thumbnails *ThumbnailDetails `json:"thumbnails,omitempty"`// Title: The video's title. @mutable youtube.videos.insert// youtube.videos.updateTitlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "CategoryId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CategoryId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoSnippet: Basic details about a video, including title, description,uploader, thumbnails and category.
func (VideoSnippet)MarshalJSON¶
func (sVideoSnippet) MarshalJSON() ([]byte,error)
typeVideoStat¶added inv0.257.0
type VideoStat struct {// ContentDetails: Output only. The VideoStatsContentDetails object contains// information about the video content, including the length of the video.ContentDetails *VideoStatsContentDetails `json:"contentDetails,omitempty"`// Etag: Output only. Etag of this resource.Etagstring `json:"etag,omitempty"`// Kind: Output only. Identifies what kind of resource this is. Value: the// fixed string "youtube#videoStats".Kindstring `json:"kind,omitempty"`// Name: Output only. Identifier. The resource name for the `VideoStats`// resource, in the format `videoStats/{video_stat}`.Namestring `json:"name,omitempty"`// Snippet: Output only. The VideoStatsSnippet object contains basic details// about the video, such publish time.Snippet *VideoStatsSnippet `json:"snippet,omitempty"`// Statistics: Output only. The VideoStatsStatistics object contains statistics// about the video.Statistics *VideoStatsStatistics `json:"statistics,omitempty"`// VideoId: Output only. The ID that YouTube uses to uniquely identify the// video.VideoIdstring `json:"videoId,omitempty"`// ForceSendFields is a list of field names (e.g. "ContentDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentDetails") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoStat: A *VideoStat* resource represents a YouTube video's stats.
func (VideoStat)MarshalJSON¶added inv0.257.0
typeVideoStatistics¶
type VideoStatistics struct {// CommentCount: The number of comments for the video.CommentCountuint64 `json:"commentCount,omitempty,string"`// DislikeCount: The number of users who have indicated that they disliked the// video by giving it a negative rating.DislikeCountuint64 `json:"dislikeCount,omitempty,string"`// FavoriteCount: The number of users who currently have the video marked as a// favorite video.FavoriteCountuint64 `json:"favoriteCount,omitempty,string"`// LikeCount: The number of users who have indicated that they liked the video// by giving it a positive rating.LikeCountuint64 `json:"likeCount,omitempty,string"`// ViewCount: The number of times the video has been viewed.ViewCountuint64 `json:"viewCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CommentCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CommentCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoStatistics: Statistics about the video, such as the number of times thevideo was viewed or liked.
func (VideoStatistics)MarshalJSON¶
func (sVideoStatistics) MarshalJSON() ([]byte,error)
typeVideoStatsContentDetails¶added inv0.257.0
type VideoStatsContentDetails struct {// Duration: Output only. The length of the video. The property value is a// `google.protobuf.Duration`// (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration)// object.Durationstring `json:"duration,omitempty"`// ForceSendFields is a list of field names (e.g. "Duration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Duration") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoStatsContentDetails: Details about the content of a YouTube Video. Thisis a subset of the information in VideoContentDetails specifically for theVideos.stats API.
func (VideoStatsContentDetails)MarshalJSON¶added inv0.257.0
func (sVideoStatsContentDetails) MarshalJSON() ([]byte,error)
typeVideoStatsSnippet¶added inv0.257.0
type VideoStatsSnippet struct {// PublishTime: Output only. The date and time that the video was uploaded. The// property value is a `google.protobuf.Timestamp`// (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp)// object.PublishTimestring `json:"publishTime,omitempty"`// ForceSendFields is a list of field names (e.g. "PublishTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PublishTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoStatsSnippet: Basic details about a video. This is a subset of theinformation in VideoSnippet specifically for the Videos.stats API.
func (VideoStatsSnippet)MarshalJSON¶added inv0.257.0
func (sVideoStatsSnippet) MarshalJSON() ([]byte,error)
typeVideoStatsStatistics¶added inv0.257.0
type VideoStatsStatistics struct {// CommentCount: Output only. The number of comments for the video.CommentCountint64 `json:"commentCount,omitempty,string"`// LikeCount: Output only. The number of users who have indicated that they// liked the video by giving it a positive rating.LikeCountint64 `json:"likeCount,omitempty,string"`// ViewCount: Output only. The number of times the video has been viewed.ViewCountint64 `json:"viewCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CommentCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CommentCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoStatsStatistics: Statistics about the video, such as the number oftimes the video was viewed or liked.
func (VideoStatsStatistics)MarshalJSON¶added inv0.257.0
func (sVideoStatsStatistics) MarshalJSON() ([]byte,error)
typeVideoStatus¶
type VideoStatus struct {// ContainsSyntheticMedia: Indicates if the video contains altered or synthetic// media.ContainsSyntheticMediabool `json:"containsSyntheticMedia,omitempty"`// Embeddable: This value indicates if the video can be embedded on another// website. @mutable youtube.videos.insert youtube.videos.updateEmbeddablebool `json:"embeddable,omitempty"`// FailureReason: This value explains why a video failed to upload. This// property is only present if the uploadStatus property indicates that the// upload failed.//// Possible values:// "conversion" - Unable to convert video content.// "invalidFile" - Invalid file format.// "emptyFile" - Empty file.// "tooSmall" - File was too small.// "codec" - Unsupported codec.// "uploadAborted" - Upload wasn't finished.FailureReasonstring `json:"failureReason,omitempty"`// License: The video's license. @mutable youtube.videos.insert// youtube.videos.update//// Possible values:// "youtube"// "creativeCommon"Licensestring `json:"license,omitempty"`MadeForKidsbool `json:"madeForKids,omitempty"`// PrivacyStatus: The video's privacy status.//// Possible values:// "public"// "unlisted"// "private"PrivacyStatusstring `json:"privacyStatus,omitempty"`// PublicStatsViewable: This value indicates if the extended video statistics// on the watch page can be viewed by everyone. Note that the view count,// likes, etc will still be visible if this is disabled. @mutable// youtube.videos.insert youtube.videos.updatePublicStatsViewablebool `json:"publicStatsViewable,omitempty"`// PublishAt: The date and time when the video is scheduled to publish. It can// be set only if the privacy status of the video is private..PublishAtstring `json:"publishAt,omitempty"`// RejectionReason: This value explains why YouTube rejected an uploaded video.// This property is only present if the uploadStatus property indicates that// the upload was rejected.//// Possible values:// "copyright" - Copyright infringement.// "inappropriate" - Inappropriate video content.// "duplicate" - Duplicate upload in the same channel.// "termsOfUse" - Terms of use violation.// "uploaderAccountSuspended" - Uploader account was suspended.// "length" - Video duration was too long.// "claim" - Blocked by content owner.// "uploaderAccountClosed" - Uploader closed his/her account.// "trademark" - Trademark infringement.// "legal" - An unspecified legal reason.RejectionReasonstring `json:"rejectionReason,omitempty"`SelfDeclaredMadeForKidsbool `json:"selfDeclaredMadeForKids,omitempty"`// UploadStatus: The status of the uploaded video.//// Possible values:// "uploaded" - Video has been uploaded but not processed yet.// "processed" - Video has been successfully processed.// "failed" - Processing has failed. See FailureReason.// "rejected" - Video has been rejected. See RejectionReason.// "deleted" - Video has been deleted.UploadStatusstring `json:"uploadStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "ContainsSyntheticMedia") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContainsSyntheticMedia") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoStatus: Basic details about a video category, such as its localizedtitle. Next Id: 19
func (VideoStatus)MarshalJSON¶
func (sVideoStatus) MarshalJSON() ([]byte,error)
typeVideoSuggestions¶
type VideoSuggestions struct {// EditorSuggestions: A list of video editing operations that might improve the// video quality or playback experience of the uploaded video.//// Possible values:// "videoAutoLevels" - Picture brightness levels seem off and could be// corrected.// "videoStabilize" - The video appears shaky and could be stabilized.// "videoCrop" - Margins (mattes) detected around the picture could be// cropped.// "audioQuietAudioSwap" - The audio track appears silent and could be// swapped with a better quality one.EditorSuggestions []string `json:"editorSuggestions,omitempty"`// ProcessingErrors: A list of errors that will prevent YouTube from// successfully processing the uploaded video video. These errors indicate// that, regardless of the video's current processing status, eventually, that// status will almost certainly be failed.//// Possible values:// "audioFile" - File contains audio only (e.g., an MP3 file).// "imageFile" - Image file (e.g., a JPEG image).// "projectFile" - Movie project file (e.g., Microsoft Windows Movie Maker// project).// "notAVideoFile" - Other non-video file.// "docFile" - Document or text file (e.g., MS Word document).// "archiveFile" - An archive file (e.g., a ZIP archive).// "unsupportedSpatialAudioLayout" - Unsupported spatial audio layout type.ProcessingErrors []string `json:"processingErrors,omitempty"`// ProcessingHints: A list of suggestions that may improve YouTube's ability to// process the video.//// Possible values:// "nonStreamableMov" - The MP4 file is not streamable, this will slow down// the processing. MOOV atom was not found at the beginning of the file.// "sendBestQualityVideo" - Probably a better quality version of the video// exists. The video has wide screen aspect ratio, but is not an HD video.// "sphericalVideo" - Uploaded video is spherical video.// "spatialAudio" - Uploaded video has spatial audio.// "vrVideo" - Uploaded video is VR video.// "hdrVideo" - Uploaded video is HDR video.ProcessingHints []string `json:"processingHints,omitempty"`// ProcessingWarnings: A list of reasons why YouTube may have difficulty// transcoding the uploaded video or that might result in an erroneous// transcoding. These warnings are generated before YouTube actually processes// the uploaded video file. In addition, they identify issues that are unlikely// to cause the video processing to fail but that might cause problems such as// sync issues, video artifacts, or a missing audio track.//// Possible values:// "unknownContainer" - Unrecognized file format, transcoding is likely to// fail.// "unknownVideoCodec" - Unrecognized video codec, transcoding is likely to// fail.// "unknownAudioCodec" - Unrecognized audio codec, transcoding is likely to// fail.// "inconsistentResolution" - Conflicting container and stream resolutions.// "hasEditlist" - Edit lists are not currently supported.// "problematicVideoCodec" - Video codec that is known to cause problems was// used.// "problematicAudioCodec" - Audio codec that is known to cause problems was// used.// "unsupportedVrStereoMode" - Unsupported VR video stereo mode.// "unsupportedSphericalProjectionType" - Unsupported spherical video// projection type.// "unsupportedHdrPixelFormat" - Unsupported HDR pixel format.// "unsupportedHdrColorMetadata" - Unspecified HDR color metadata.// "problematicHdrLookupTable" - Problematic HDR lookup table attached.ProcessingWarnings []string `json:"processingWarnings,omitempty"`// TagSuggestions: A list of keyword tags that could be added to the video's// metadata to increase the likelihood that users will locate your video when// searching or browsing on YouTube.TagSuggestions []*VideoSuggestionsTagSuggestion `json:"tagSuggestions,omitempty"`// ForceSendFields is a list of field names (e.g. "EditorSuggestions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EditorSuggestions") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoSuggestions: Specifies suggestions on how to improve video content,including encoding hints, tag suggestions, and editor suggestions.
func (VideoSuggestions)MarshalJSON¶
func (sVideoSuggestions) MarshalJSON() ([]byte,error)
typeVideoSuggestionsTagSuggestion¶
type VideoSuggestionsTagSuggestion struct {// CategoryRestricts: A set of video categories for which the tag is relevant.// You can use this information to display appropriate tag suggestions based on// the video category that the video uploader associates with the video. By// default, tag suggestions are relevant for all categories if there are no// restricts defined for the keyword.CategoryRestricts []string `json:"categoryRestricts,omitempty"`// Tag: The keyword tag suggested for the video.Tagstring `json:"tag,omitempty"`// ForceSendFields is a list of field names (e.g. "CategoryRestricts") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CategoryRestricts") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoSuggestionsTagSuggestion: A single tag suggestion with its relevanceinformation.
func (VideoSuggestionsTagSuggestion)MarshalJSON¶
func (sVideoSuggestionsTagSuggestion) MarshalJSON() ([]byte,error)
typeVideoTopicDetails¶
type VideoTopicDetails struct {// RelevantTopicIds: Similar to topic_id, except that these topics are merely// relevant to the video. These are topics that may be mentioned in, or appear// in the video. You can retrieve information about each topic using Freebase// Topic API.RelevantTopicIds []string `json:"relevantTopicIds,omitempty"`// TopicCategories: A list of Wikipedia URLs that provide a high-level// description of the video's content.TopicCategories []string `json:"topicCategories,omitempty"`// TopicIds: A list of Freebase topic IDs that are centrally associated with// the video. These are topics that are centrally featured in the video, and it// can be said that the video is mainly about each of these. You can retrieve// information about each topic using the < a// href="http://wiki.freebase.com/wiki/Topic_API">Freebase Topic API.TopicIds []string `json:"topicIds,omitempty"`// ForceSendFields is a list of field names (e.g. "RelevantTopicIds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RelevantTopicIds") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoTopicDetails: Freebase topic information related to the video.
func (VideoTopicDetails)MarshalJSON¶
func (sVideoTopicDetails) MarshalJSON() ([]byte,error)
typeVideoTrainability¶added inv0.219.0
type VideoTrainability struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "youtube#videoTrainability".Kindstring `json:"kind,omitempty"`// Permitted: Specifies who is allowed to train on the video. Valid values are:// - a single string "all" - a single string "none" - a list of allowed partiesPermitted []string `json:"permitted,omitempty"`// VideoId: The ID of the video.VideoIdstring `json:"videoId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VideoTrainability: Specifies who is allowed to train on the video.
func (VideoTrainability)MarshalJSON¶added inv0.219.0
func (sVideoTrainability) MarshalJSON() ([]byte,error)
typeVideoTrainabilityGetCall¶added inv0.219.0
type VideoTrainabilityGetCall struct {// contains filtered or unexported fields}func (*VideoTrainabilityGetCall)Context¶added inv0.219.0
func (c *VideoTrainabilityGetCall) Context(ctxcontext.Context) *VideoTrainabilityGetCall
Context sets the context to be used in this call's Do method.
func (*VideoTrainabilityGetCall)Do¶added inv0.219.0
func (c *VideoTrainabilityGetCall) Do(opts ...googleapi.CallOption) (*VideoTrainability,error)
Do executes the "youtube.videoTrainability.get" call.Any non-2xx status code is an error. Response headers are in either*VideoTrainability.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*VideoTrainabilityGetCall)Fields¶added inv0.219.0
func (c *VideoTrainabilityGetCall) Fields(s ...googleapi.Field) *VideoTrainabilityGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideoTrainabilityGetCall)Header¶added inv0.219.0
func (c *VideoTrainabilityGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*VideoTrainabilityGetCall)Id¶added inv0.219.0
func (c *VideoTrainabilityGetCall) Id(idstring) *VideoTrainabilityGetCall
Id sets the optional parameter "id": The ID of the video to retrieve.
func (*VideoTrainabilityGetCall)IfNoneMatch¶added inv0.219.0
func (c *VideoTrainabilityGetCall) IfNoneMatch(entityTagstring) *VideoTrainabilityGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeVideoTrainabilityService¶added inv0.219.0
type VideoTrainabilityService struct {// contains filtered or unexported fields}funcNewVideoTrainabilityService¶added inv0.219.0
func NewVideoTrainabilityService(s *Service) *VideoTrainabilityService
func (*VideoTrainabilityService)Get¶added inv0.219.0
func (r *VideoTrainabilityService) Get() *VideoTrainabilityGetCall
Get: Returns the trainability status of a video.
typeVideosDeleteCall¶
type VideosDeleteCall struct {// contains filtered or unexported fields}func (*VideosDeleteCall)Context¶
func (c *VideosDeleteCall) Context(ctxcontext.Context) *VideosDeleteCall
Context sets the context to be used in this call's Do method.
func (*VideosDeleteCall)Do¶
func (c *VideosDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.videos.delete" call.
func (*VideosDeleteCall)Fields¶
func (c *VideosDeleteCall) Fields(s ...googleapi.Field) *VideosDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideosDeleteCall)Header¶
func (c *VideosDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*VideosDeleteCall)OnBehalfOfContentOwner¶
func (c *VideosDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *VideosDeleteCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The actual CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
typeVideosGetRatingCall¶
type VideosGetRatingCall struct {// contains filtered or unexported fields}func (*VideosGetRatingCall)Context¶
func (c *VideosGetRatingCall) Context(ctxcontext.Context) *VideosGetRatingCall
Context sets the context to be used in this call's Do method.
func (*VideosGetRatingCall)Do¶
func (c *VideosGetRatingCall) Do(opts ...googleapi.CallOption) (*VideoGetRatingResponse,error)
Do executes the "youtube.videos.getRating" call.Any non-2xx status code is an error. Response headers are in either*VideoGetRatingResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*VideosGetRatingCall)Fields¶
func (c *VideosGetRatingCall) Fields(s ...googleapi.Field) *VideosGetRatingCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideosGetRatingCall)Header¶
func (c *VideosGetRatingCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*VideosGetRatingCall)IfNoneMatch¶
func (c *VideosGetRatingCall) IfNoneMatch(entityTagstring) *VideosGetRatingCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*VideosGetRatingCall)OnBehalfOfContentOwner¶
func (c *VideosGetRatingCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *VideosGetRatingCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typeVideosInsertCall¶
type VideosInsertCall struct {// contains filtered or unexported fields}func (*VideosInsertCall)AutoLevels¶
func (c *VideosInsertCall) AutoLevels(autoLevelsbool) *VideosInsertCall
AutoLevels sets the optional parameter "autoLevels": Should auto-levels beapplied to the upload.
func (*VideosInsertCall)Context¶
func (c *VideosInsertCall) Context(ctxcontext.Context) *VideosInsertCall
Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.
func (*VideosInsertCall)Do¶
func (c *VideosInsertCall) Do(opts ...googleapi.CallOption) (*Video,error)
Do executes the "youtube.videos.insert" call.Any non-2xx status code is an error. Response headers are in either*Video.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*VideosInsertCall)Fields¶
func (c *VideosInsertCall) Fields(s ...googleapi.Field) *VideosInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideosInsertCall)Header¶
func (c *VideosInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*VideosInsertCall)Media¶
func (c *VideosInsertCall) Media(rio.Reader, options ...googleapi.MediaOption) *VideosInsertCall
Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.
func (*VideosInsertCall)NotifySubscribers¶
func (c *VideosInsertCall) NotifySubscribers(notifySubscribersbool) *VideosInsertCall
NotifySubscribers sets the optional parameter "notifySubscribers": Notifythe channel subscribers about the new video. As default, the notification isenabled.
func (*VideosInsertCall)OnBehalfOfContentOwner¶
func (c *VideosInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *VideosInsertCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*VideosInsertCall)OnBehalfOfContentOwnerChannel¶
func (c *VideosInsertCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannelstring) *VideosInsertCall
OnBehalfOfContentOwnerChannel sets the optional parameter"onBehalfOfContentOwnerChannel": This parameter can only be used in aproperly authorized request. *Note:* This parameter is intended exclusivelyfor YouTube content partners. The *onBehalfOfContentOwnerChannel* parameterspecifies the YouTube channel ID of the channel to which a video is beingadded. This parameter is required when a request specifies a value for theonBehalfOfContentOwner parameter, and it can only be used in conjunctionwith that parameter. In addition, the request must be authorized using a CMSaccount that is linked to the content owner that the onBehalfOfContentOwnerparameter specifies. Finally, the channel that theonBehalfOfContentOwnerChannel parameter value specifies must be linked tothe content owner that the onBehalfOfContentOwner parameter specifies. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand perform actions on behalf of the channel specified in the parametervalue, without having to provide authentication credentials for eachseparate channel.
func (*VideosInsertCall)ProgressUpdater¶
func (c *VideosInsertCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *VideosInsertCall
ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).
func (*VideosInsertCall)ResumableMediadeprecated
func (c *VideosInsertCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *VideosInsertCall
ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.
func (*VideosInsertCall)Stabilize¶
func (c *VideosInsertCall) Stabilize(stabilizebool) *VideosInsertCall
Stabilize sets the optional parameter "stabilize": Should stabilize beapplied to the upload.
typeVideosListCall¶
type VideosListCall struct {// contains filtered or unexported fields}func (*VideosListCall)Chart¶
func (c *VideosListCall) Chart(chartstring) *VideosListCall
Chart sets the optional parameter "chart": Return the videos that are in thespecified chart.
Possible values:
"chartUnspecified""mostPopular" - Return the most popular videos for the specified content
region and video category.
func (*VideosListCall)Context¶
func (c *VideosListCall) Context(ctxcontext.Context) *VideosListCall
Context sets the context to be used in this call's Do method.
func (*VideosListCall)Do¶
func (c *VideosListCall) Do(opts ...googleapi.CallOption) (*VideoListResponse,error)
Do executes the "youtube.videos.list" call.Any non-2xx status code is an error. Response headers are in either*VideoListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*VideosListCall)Fields¶
func (c *VideosListCall) Fields(s ...googleapi.Field) *VideosListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideosListCall)Header¶
func (c *VideosListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*VideosListCall)Hl¶
func (c *VideosListCall) Hl(hlstring) *VideosListCall
Hl sets the optional parameter "hl": Stands for "host language". Specifiesthe localization language of the metadata to be filled intosnippet.localized. The field is filled with the default metadata if there isno localization in the specified language. The parameter value must be alanguage code included in the list returned by the i18nLanguages.list method(e.g. en_US, es_MX).
func (*VideosListCall)Id¶
func (c *VideosListCall) Id(id ...string) *VideosListCall
Id sets the optional parameter "id": Return videos with the given ids.
func (*VideosListCall)IfNoneMatch¶
func (c *VideosListCall) IfNoneMatch(entityTagstring) *VideosListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*VideosListCall)Locale¶
func (c *VideosListCall) Locale(localestring) *VideosListCall
Locale sets the optional parameter "locale":
func (*VideosListCall)MaxHeight¶
func (c *VideosListCall) MaxHeight(maxHeightint64) *VideosListCall
MaxHeight sets the optional parameter "maxHeight":
func (*VideosListCall)MaxResults¶
func (c *VideosListCall) MaxResults(maxResultsint64) *VideosListCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set. *Note:* This parameter is supported for use in conjunctionwith the myRating and chart parameters, but it is not supported for use inconjunction with the id parameter.
func (*VideosListCall)MaxWidth¶
func (c *VideosListCall) MaxWidth(maxWidthint64) *VideosListCall
MaxWidth sets the optional parameter "maxWidth": Return the player withmaximum height specified in
func (*VideosListCall)MyRating¶
func (c *VideosListCall) MyRating(myRatingstring) *VideosListCall
MyRating sets the optional parameter "myRating": Return videosliked/disliked by the authenticated user. Does not supportRateType.RATED_TYPE_NONE.
Possible values:
"none""like" - The entity is liked."dislike" - The entity is disliked.
func (*VideosListCall)OnBehalfOfContentOwner¶
func (c *VideosListCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *VideosListCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*VideosListCall)PageToken¶
func (c *VideosListCall) PageToken(pageTokenstring) *VideosListCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken and prevPageToken properties identify otherpages that could be retrieved. *Note:* This parameter is supported for usein conjunction with the myRating and chart parameters, but it is notsupported for use in conjunction with the id parameter.
func (*VideosListCall)Pages¶
func (c *VideosListCall) Pages(ctxcontext.Context, f func(*VideoListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*VideosListCall)RegionCode¶
func (c *VideosListCall) RegionCode(regionCodestring) *VideosListCall
RegionCode sets the optional parameter "regionCode": Use a chart that isspecific to the specified region
func (*VideosListCall)VideoCategoryId¶
func (c *VideosListCall) VideoCategoryId(videoCategoryIdstring) *VideosListCall
VideoCategoryId sets the optional parameter "videoCategoryId": Use chartthat is specific to the specified video category
typeVideosRateCall¶
type VideosRateCall struct {// contains filtered or unexported fields}func (*VideosRateCall)Context¶
func (c *VideosRateCall) Context(ctxcontext.Context) *VideosRateCall
Context sets the context to be used in this call's Do method.
func (*VideosRateCall)Do¶
func (c *VideosRateCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.videos.rate" call.
func (*VideosRateCall)Fields¶
func (c *VideosRateCall) Fields(s ...googleapi.Field) *VideosRateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideosRateCall)Header¶
func (c *VideosRateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeVideosReportAbuseCall¶
type VideosReportAbuseCall struct {// contains filtered or unexported fields}func (*VideosReportAbuseCall)Context¶
func (c *VideosReportAbuseCall) Context(ctxcontext.Context) *VideosReportAbuseCall
Context sets the context to be used in this call's Do method.
func (*VideosReportAbuseCall)Do¶
func (c *VideosReportAbuseCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.videos.reportAbuse" call.
func (*VideosReportAbuseCall)Fields¶
func (c *VideosReportAbuseCall) Fields(s ...googleapi.Field) *VideosReportAbuseCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideosReportAbuseCall)Header¶
func (c *VideosReportAbuseCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*VideosReportAbuseCall)OnBehalfOfContentOwner¶
func (c *VideosReportAbuseCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *VideosReportAbuseCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typeVideosService¶
type VideosService struct {// contains filtered or unexported fields}funcNewVideosService¶
func NewVideosService(s *Service) *VideosService
func (*VideosService)Delete¶
func (r *VideosService) Delete(idstring) *VideosDeleteCall
Delete: Deletes a resource.
- id: .
func (*VideosService)GetRating¶
func (r *VideosService) GetRating(id []string) *VideosGetRatingCall
GetRating: Retrieves the ratings that the authorized user gave to a list ofspecified videos.
- id: .
func (*VideosService)Insert¶
func (r *VideosService) Insert(part []string, video *Video) *VideosInsertCall
Insert: Inserts a new resource into this collection.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. Note that not all partscontain properties that can be set when inserting or updating a video. Forexample, the statistics object encapsulates statistics that YouTubecalculates for a video and does not contain values that you can set ormodify. If the parameter value specifies a part that does not containmutable values, that part will still be included in the API response.
func (*VideosService)List¶
func (r *VideosService) List(part []string) *VideosListCall
List: Retrieves a list of resources, possibly filtered.
- part: The *part* parameter specifies a comma-separated list of one or morevideo resource properties that the API response will include. If theparameter identifies a property that contains child properties, the childproperties will be included in the response. For example, in a videoresource, the snippet property contains the channelId, title, description,tags, and categoryId properties. As such, if you set *part=snippet*, theAPI response will contain all of those properties.
func (*VideosService)Rate¶
func (r *VideosService) Rate(idstring, ratingstring) *VideosRateCall
Rate: Adds a like or dislike rating to a video or removes a rating from avideo.
- id: .- rating: .
func (*VideosService)ReportAbuse¶
func (r *VideosService) ReportAbuse(videoabusereport *VideoAbuseReport) *VideosReportAbuseCall
ReportAbuse: Report abuse for a video.
func (*VideosService)Update¶
func (r *VideosService) Update(part []string, video *Video) *VideosUpdateCall
Update: Updates an existing resource.
- part: The *part* parameter serves two purposes in this operation. Itidentifies the properties that the write operation will set as well as theproperties that the API response will include. Note that this method willoverride the existing values for all of the mutable properties that arecontained in any parts that the parameter value specifies. For example, avideo's privacy setting is contained in the status part. As such, if yourrequest is updating a private video, and the request's part parametervalue includes the status part, the video's privacy setting will beupdated to whatever value the request body specifies. If the request bodydoes not specify a value, the existing privacy setting will be removed andthe video will revert to the default privacy setting. In addition, not allparts contain properties that can be set when inserting or updating avideo. For example, the statistics object encapsulates statistics thatYouTube calculates for a video and does not contain values that you canset or modify. If the parameter value specifies a part that does notcontain mutable values, that part will still be included in the APIresponse.
typeVideosUpdateCall¶
type VideosUpdateCall struct {// contains filtered or unexported fields}func (*VideosUpdateCall)Context¶
func (c *VideosUpdateCall) Context(ctxcontext.Context) *VideosUpdateCall
Context sets the context to be used in this call's Do method.
func (*VideosUpdateCall)Do¶
func (c *VideosUpdateCall) Do(opts ...googleapi.CallOption) (*Video,error)
Do executes the "youtube.videos.update" call.Any non-2xx status code is an error. Response headers are in either*Video.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*VideosUpdateCall)Fields¶
func (c *VideosUpdateCall) Fields(s ...googleapi.Field) *VideosUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*VideosUpdateCall)Header¶
func (c *VideosUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*VideosUpdateCall)OnBehalfOfContentOwner¶
func (c *VideosUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *VideosUpdateCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The actual CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
typeWatchSettings¶
type WatchSettings struct {// BackgroundColor: The text color for the video watch page's branded area.BackgroundColorstring `json:"backgroundColor,omitempty"`// FeaturedPlaylistId: An ID that uniquely identifies a playlist that displays// next to the video player.FeaturedPlaylistIdstring `json:"featuredPlaylistId,omitempty"`// TextColor: The background color for the video watch page's branded area.TextColorstring `json:"textColor,omitempty"`// ForceSendFields is a list of field names (e.g. "BackgroundColor") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BackgroundColor") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}WatchSettings: Branding properties for the watch. All deprecated.
func (WatchSettings)MarshalJSON¶
func (sWatchSettings) MarshalJSON() ([]byte,error)
typeWatermarksService¶
type WatermarksService struct {// contains filtered or unexported fields}funcNewWatermarksService¶
func NewWatermarksService(s *Service) *WatermarksService
func (*WatermarksService)Set¶
func (r *WatermarksService) Set(channelIdstring, invideobranding *InvideoBranding) *WatermarksSetCall
Set: Allows upload of watermark image and setting it for a channel.
- channelId: .
func (*WatermarksService)Unset¶
func (r *WatermarksService) Unset(channelIdstring) *WatermarksUnsetCall
Unset: Allows removal of channel watermark.
- channelId: .
typeWatermarksSetCall¶
type WatermarksSetCall struct {// contains filtered or unexported fields}func (*WatermarksSetCall)Context¶
func (c *WatermarksSetCall) Context(ctxcontext.Context) *WatermarksSetCall
Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.
func (*WatermarksSetCall)Do¶
func (c *WatermarksSetCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.watermarks.set" call.
func (*WatermarksSetCall)Fields¶
func (c *WatermarksSetCall) Fields(s ...googleapi.Field) *WatermarksSetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*WatermarksSetCall)Header¶
func (c *WatermarksSetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*WatermarksSetCall)Media¶
func (c *WatermarksSetCall) Media(rio.Reader, options ...googleapi.MediaOption) *WatermarksSetCall
Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.
func (*WatermarksSetCall)OnBehalfOfContentOwner¶
func (c *WatermarksSetCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *WatermarksSetCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
func (*WatermarksSetCall)ProgressUpdater¶
func (c *WatermarksSetCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *WatermarksSetCall
ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).
func (*WatermarksSetCall)ResumableMediadeprecated
func (c *WatermarksSetCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *WatermarksSetCall
ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.
typeWatermarksUnsetCall¶
type WatermarksUnsetCall struct {// contains filtered or unexported fields}func (*WatermarksUnsetCall)Context¶
func (c *WatermarksUnsetCall) Context(ctxcontext.Context) *WatermarksUnsetCall
Context sets the context to be used in this call's Do method.
func (*WatermarksUnsetCall)Do¶
func (c *WatermarksUnsetCall) Do(opts ...googleapi.CallOption)error
Do executes the "youtube.watermarks.unset" call.
func (*WatermarksUnsetCall)Fields¶
func (c *WatermarksUnsetCall) Fields(s ...googleapi.Field) *WatermarksUnsetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*WatermarksUnsetCall)Header¶
func (c *WatermarksUnsetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*WatermarksUnsetCall)OnBehalfOfContentOwner¶
func (c *WatermarksUnsetCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *WatermarksUnsetCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":*Note:* This parameter is intended exclusively for YouTube content partners.The *onBehalfOfContentOwner* parameter indicates that the request'sauthorization credentials identify a YouTube CMS user who is acting onbehalf of the content owner specified in the parameter value. This parameteris intended for YouTube content partners that own and manage many differentYouTube channels. It allows content owners to authenticate once and getaccess to all their video and channel data, without having to provideauthentication credentials for each individual channel. The CMS account thatthe user authenticates with must be linked to the specified YouTube contentowner.
typeYoutubeService¶added inv0.29.0
type YoutubeService struct {V3 *YoutubeV3Service// contains filtered or unexported fields}funcNewYoutubeService¶added inv0.29.0
func NewYoutubeService(s *Service) *YoutubeService
typeYoutubeV3LiveChatMessagesService¶added inv0.178.0
type YoutubeV3LiveChatMessagesService struct {// contains filtered or unexported fields}funcNewYoutubeV3LiveChatMessagesService¶added inv0.178.0
func NewYoutubeV3LiveChatMessagesService(s *Service) *YoutubeV3LiveChatMessagesService
func (*YoutubeV3LiveChatMessagesService)Stream¶added inv0.201.0
func (r *YoutubeV3LiveChatMessagesService) Stream() *YoutubeV3LiveChatMessagesStreamCall
Stream: Allows a user to load live chat through a server-streamed RPC.
typeYoutubeV3LiveChatMessagesStreamCall¶added inv0.201.0
type YoutubeV3LiveChatMessagesStreamCall struct {// contains filtered or unexported fields}func (*YoutubeV3LiveChatMessagesStreamCall)Context¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) Context(ctxcontext.Context) *YoutubeV3LiveChatMessagesStreamCall
Context sets the context to be used in this call's Do method.
func (*YoutubeV3LiveChatMessagesStreamCall)Do¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) Do(opts ...googleapi.CallOption) (*LiveChatMessageListResponse,error)
Do executes the "youtube.youtube.v3.liveChat.messages.stream" call.Any non-2xx status code is an error. Response headers are in either*LiveChatMessageListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*YoutubeV3LiveChatMessagesStreamCall)Fields¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) Fields(s ...googleapi.Field) *YoutubeV3LiveChatMessagesStreamCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*YoutubeV3LiveChatMessagesStreamCall)Header¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*YoutubeV3LiveChatMessagesStreamCall)Hl¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) Hl(hlstring) *YoutubeV3LiveChatMessagesStreamCall
Hl sets the optional parameter "hl": Specifies the localization language inwhich the system messages should be returned.
func (*YoutubeV3LiveChatMessagesStreamCall)IfNoneMatch¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) IfNoneMatch(entityTagstring) *YoutubeV3LiveChatMessagesStreamCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*YoutubeV3LiveChatMessagesStreamCall)LiveChatId¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) LiveChatId(liveChatIdstring) *YoutubeV3LiveChatMessagesStreamCall
LiveChatId sets the optional parameter "liveChatId": The id of the live chatfor which comments should be returned.
func (*YoutubeV3LiveChatMessagesStreamCall)MaxResults¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) MaxResults(maxResultsint64) *YoutubeV3LiveChatMessagesStreamCall
MaxResults sets the optional parameter "maxResults": The *maxResults*parameter specifies the maximum number of items that should be returned inthe result set. Not used in the streaming RPC.
func (*YoutubeV3LiveChatMessagesStreamCall)PageToken¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) PageToken(pageTokenstring) *YoutubeV3LiveChatMessagesStreamCall
PageToken sets the optional parameter "pageToken": The *pageToken* parameteridentifies a specific page in the result set that should be returned. In anAPI response, the nextPageToken property identify other pages that could beretrieved.
func (*YoutubeV3LiveChatMessagesStreamCall)Pages¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) Pages(ctxcontext.Context, f func(*LiveChatMessageListResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*YoutubeV3LiveChatMessagesStreamCall)Part¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) Part(part ...string) *YoutubeV3LiveChatMessagesStreamCall
Part sets the optional parameter "part": The *part* parameter specifies theliveChatComment resource parts that the API response will include. Supportedvalues are id, snippet, and authorDetails.
func (*YoutubeV3LiveChatMessagesStreamCall)ProfileImageSize¶added inv0.201.0
func (c *YoutubeV3LiveChatMessagesStreamCall) ProfileImageSize(profileImageSizeint64) *YoutubeV3LiveChatMessagesStreamCall
ProfileImageSize sets the optional parameter "profileImageSize": Specifiesthe size of the profile image that should be returned for each user.
typeYoutubeV3LiveChatService¶added inv0.178.0
type YoutubeV3LiveChatService struct {Messages *YoutubeV3LiveChatMessagesService// contains filtered or unexported fields}funcNewYoutubeV3LiveChatService¶added inv0.178.0
func NewYoutubeV3LiveChatService(s *Service) *YoutubeV3LiveChatService
typeYoutubeV3Service¶added inv0.29.0
type YoutubeV3Service struct {LiveChat *YoutubeV3LiveChatServiceVideos *YoutubeV3VideosService// contains filtered or unexported fields}funcNewYoutubeV3Service¶added inv0.29.0
func NewYoutubeV3Service(s *Service) *YoutubeV3Service
func (*YoutubeV3Service)UpdateCommentThreads¶added inv0.50.0
func (r *YoutubeV3Service) UpdateCommentThreads(commentthread *CommentThread) *YoutubeV3UpdateCommentThreadsCall
UpdateCommentThreads: Updates an existing resource.
typeYoutubeV3UpdateCommentThreadsCall¶added inv0.50.0
type YoutubeV3UpdateCommentThreadsCall struct {// contains filtered or unexported fields}func (*YoutubeV3UpdateCommentThreadsCall)Context¶added inv0.50.0
func (c *YoutubeV3UpdateCommentThreadsCall) Context(ctxcontext.Context) *YoutubeV3UpdateCommentThreadsCall
Context sets the context to be used in this call's Do method.
func (*YoutubeV3UpdateCommentThreadsCall)Do¶added inv0.50.0
func (c *YoutubeV3UpdateCommentThreadsCall) Do(opts ...googleapi.CallOption) (*CommentThread,error)
Do executes the "youtube.youtube.v3.updateCommentThreads" call.Any non-2xx status code is an error. Response headers are in either*CommentThread.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*YoutubeV3UpdateCommentThreadsCall)Fields¶added inv0.50.0
func (c *YoutubeV3UpdateCommentThreadsCall) Fields(s ...googleapi.Field) *YoutubeV3UpdateCommentThreadsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*YoutubeV3UpdateCommentThreadsCall)Header¶added inv0.50.0
func (c *YoutubeV3UpdateCommentThreadsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*YoutubeV3UpdateCommentThreadsCall)Part¶added inv0.50.0
func (c *YoutubeV3UpdateCommentThreadsCall) Part(part ...string) *YoutubeV3UpdateCommentThreadsCall
Part sets the optional parameter "part": The *part* parameter specifies acomma-separated list of commentThread resource properties that the APIresponse will include. You must at least include the snippet part in theparameter value since that part contains all of the properties that the APIrequest can update.
typeYoutubeV3VideosBatchGetStatsCall¶added inv0.257.0
type YoutubeV3VideosBatchGetStatsCall struct {// contains filtered or unexported fields}func (*YoutubeV3VideosBatchGetStatsCall)Context¶added inv0.257.0
func (c *YoutubeV3VideosBatchGetStatsCall) Context(ctxcontext.Context) *YoutubeV3VideosBatchGetStatsCall
Context sets the context to be used in this call's Do method.
func (*YoutubeV3VideosBatchGetStatsCall)Do¶added inv0.257.0
func (c *YoutubeV3VideosBatchGetStatsCall) Do(opts ...googleapi.CallOption) (*BatchGetStatsResponse,error)
Do executes the "youtube.youtube.v3.videos.batchGetStats" call.Any non-2xx status code is an error. Response headers are in either*BatchGetStatsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*YoutubeV3VideosBatchGetStatsCall)Fields¶added inv0.257.0
func (c *YoutubeV3VideosBatchGetStatsCall) Fields(s ...googleapi.Field) *YoutubeV3VideosBatchGetStatsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*YoutubeV3VideosBatchGetStatsCall)Header¶added inv0.257.0
func (c *YoutubeV3VideosBatchGetStatsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*YoutubeV3VideosBatchGetStatsCall)IfNoneMatch¶added inv0.257.0
func (c *YoutubeV3VideosBatchGetStatsCall) IfNoneMatch(entityTagstring) *YoutubeV3VideosBatchGetStatsCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*YoutubeV3VideosBatchGetStatsCall)OnBehalfOfContentOwner¶added inv0.257.0
func (c *YoutubeV3VideosBatchGetStatsCall) OnBehalfOfContentOwner(onBehalfOfContentOwnerstring) *YoutubeV3VideosBatchGetStatsCall
OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner":**Note:** This parameter is intended exclusively for YouTube contentpartners. The `onBehalfOfContentOwner` parameter indicates that therequest's authorization credentials identify a YouTube CMS user who isacting on behalf of the content owner specified in the parameter value. Thisparameter is intended for YouTube content partners that own and manage manydifferent YouTube channels. It allows content owners to authenticate onceand get access to all their video and channel data, without having toprovide authentication credentials for each individual channel. The CMSaccount that the user authenticates with must be linked to the specifiedYouTube content owner.
func (*YoutubeV3VideosBatchGetStatsCall)Part¶added inv0.257.0
func (c *YoutubeV3VideosBatchGetStatsCall) Part(part ...string) *YoutubeV3VideosBatchGetStatsCall
Part sets the optional parameter "part": Required. The `**part**` parameterspecifies a comma-separated list of one or more `videoStat` resourceproperties that the API response will include. If the parameter identifies aproperty that contains child properties, the child properties will beincluded in the response. For example, in a `videoStat` resource, the`statistics` property contains `view_count` and `like_count`. As such, ifyou set `**part=snippet**`, the API response will contain all of thoseproperties.
func (*YoutubeV3VideosBatchGetStatsCall)VideoIds¶added inv0.257.0
func (c *YoutubeV3VideosBatchGetStatsCall) VideoIds(videoIds ...string) *YoutubeV3VideosBatchGetStatsCall
VideoIds sets the optional parameter "videoIds": Required. Return videoswith the given ids.
typeYoutubeV3VideosService¶added inv0.257.0
type YoutubeV3VideosService struct {// contains filtered or unexported fields}funcNewYoutubeV3VideosService¶added inv0.257.0
func NewYoutubeV3VideosService(s *Service) *YoutubeV3VideosService
func (*YoutubeV3VideosService)BatchGetStats¶added inv0.257.0
func (r *YoutubeV3VideosService) BatchGetStats() *YoutubeV3VideosBatchGetStatsCall
BatchGetStats: Retrieves a batch of VideoStat resources, possibly filtered.