@@ -18428,6 +18428,227 @@ public Stream set(String parameterName, Object value) {
1842818428
1842918429 }
1843018430 }
18431+ /**
18432+ * An accessor for creating requests from the Videos collection.
18433+ *
18434+ * <p>The typical use is:</p>
18435+ * <pre>
18436+ * {@code YouTube youtube = new YouTube(...);}
18437+ * {@code YouTube.Videos.List request = youtube.videos().list(parameters ...)}
18438+ * </pre>
18439+ *
18440+ * @return the resource collection
18441+ */
18442+ public Videos videos() {
18443+ return new Videos();
18444+ }
18445+
18446+ /**
18447+ * The "videos" collection of methods.
18448+ */
18449+ public class Videos {
18450+
18451+ /**
18452+ * Retrieves a batch of VideoStat resources, possibly filtered.
18453+ *
18454+ * Create a request for the method "videos.batchGetStats".
18455+ *
18456+ * This request holds the parameters needed by the youtube server. After setting any optional
18457+ * parameters, call the {@link BatchGetStats#execute()} method to invoke the remote operation.
18458+ *
18459+ * @return the request
18460+ */
18461+ public BatchGetStats batchGetStats() throws java.io.IOException {
18462+ BatchGetStats result = new BatchGetStats();
18463+ initialize(result);
18464+ return result;
18465+ }
18466+
18467+ public class BatchGetStats extends YouTubeRequest<com.google.api.services.youtube.model.BatchGetStatsResponse> {
18468+
18469+ private static final String REST_PATH = "youtube/v3/videos:batchGetStats";
18470+
18471+ /**
18472+ * Retrieves a batch of VideoStat resources, possibly filtered.
18473+ *
18474+ * Create a request for the method "videos.batchGetStats".
18475+ *
18476+ * This request holds the parameters needed by the the youtube server. After setting any optional
18477+ * parameters, call the {@link BatchGetStats#execute()} method to invoke the remote operation. <p>
18478+ * {@link BatchGetStats#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR
18479+ * equest)} must be called to initialize this instance immediately after invoking the constructor.
18480+ * </p>
18481+ *
18482+ * @since 1.13
18483+ */
18484+ protected BatchGetStats() {
18485+ super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.BatchGetStatsResponse.class);
18486+ }
18487+
18488+ @Override
18489+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
18490+ return super.executeUsingHead();
18491+ }
18492+
18493+ @Override
18494+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
18495+ return super.buildHttpRequestUsingHead();
18496+ }
18497+
18498+ @Override
18499+ public BatchGetStats set$Xgafv(java.lang.String $Xgafv) {
18500+ return (BatchGetStats) super.set$Xgafv($Xgafv);
18501+ }
18502+
18503+ @Override
18504+ public BatchGetStats setAccessToken(java.lang.String accessToken) {
18505+ return (BatchGetStats) super.setAccessToken(accessToken);
18506+ }
18507+
18508+ @Override
18509+ public BatchGetStats setAlt(java.lang.String alt) {
18510+ return (BatchGetStats) super.setAlt(alt);
18511+ }
18512+
18513+ @Override
18514+ public BatchGetStats setCallback(java.lang.String callback) {
18515+ return (BatchGetStats) super.setCallback(callback);
18516+ }
18517+
18518+ @Override
18519+ public BatchGetStats setFields(java.lang.String fields) {
18520+ return (BatchGetStats) super.setFields(fields);
18521+ }
18522+
18523+ @Override
18524+ public BatchGetStats setKey(java.lang.String key) {
18525+ return (BatchGetStats) super.setKey(key);
18526+ }
18527+
18528+ @Override
18529+ public BatchGetStats setOauthToken(java.lang.String oauthToken) {
18530+ return (BatchGetStats) super.setOauthToken(oauthToken);
18531+ }
18532+
18533+ @Override
18534+ public BatchGetStats setPrettyPrint(java.lang.Boolean prettyPrint) {
18535+ return (BatchGetStats) super.setPrettyPrint(prettyPrint);
18536+ }
18537+
18538+ @Override
18539+ public BatchGetStats setQuotaUser(java.lang.String quotaUser) {
18540+ return (BatchGetStats) super.setQuotaUser(quotaUser);
18541+ }
18542+
18543+ @Override
18544+ public BatchGetStats setUploadType(java.lang.String uploadType) {
18545+ return (BatchGetStats) super.setUploadType(uploadType);
18546+ }
18547+
18548+ @Override
18549+ public BatchGetStats setUploadProtocol(java.lang.String uploadProtocol) {
18550+ return (BatchGetStats) super.setUploadProtocol(uploadProtocol);
18551+ }
18552+
18553+ /**
18554+ * Optional. **Note:** This parameter is intended exclusively for YouTube content
18555+ * partners. The `onBehalfOfContentOwner` parameter indicates that the request's
18556+ * authorization credentials identify a YouTube CMS user who is acting on behalf of the
18557+ * content owner specified in the parameter value. This parameter is intended for YouTube
18558+ * content partners that own and manage many different YouTube channels. It allows content
18559+ * owners to authenticate once and get access to all their video and channel data, without
18560+ * having to provide authentication credentials for each individual channel. The CMS
18561+ * account that the user authenticates with must be linked to the specified YouTube
18562+ * content owner.
18563+ */
18564+ @com.google.api.client.util.Key
18565+ private java.lang.String onBehalfOfContentOwner;
18566+
18567+ /** Optional. **Note:** This parameter is intended exclusively for YouTube content partners. The
18568+ `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify
18569+ a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value.
18570+ This parameter is intended for YouTube content partners that own and manage many different YouTube
18571+ channels. It allows content owners to authenticate once and get access to all their video and
18572+ channel data, without having to provide authentication credentials for each individual channel. The
18573+ CMS account that the user authenticates with must be linked to the specified YouTube content owner.
18574+ */
18575+ public java.lang.String getOnBehalfOfContentOwner() {
18576+ return onBehalfOfContentOwner;
18577+ }
18578+
18579+ /**
18580+ * Optional. **Note:** This parameter is intended exclusively for YouTube content
18581+ * partners. The `onBehalfOfContentOwner` parameter indicates that the request's
18582+ * authorization credentials identify a YouTube CMS user who is acting on behalf of the
18583+ * content owner specified in the parameter value. This parameter is intended for YouTube
18584+ * content partners that own and manage many different YouTube channels. It allows content
18585+ * owners to authenticate once and get access to all their video and channel data, without
18586+ * having to provide authentication credentials for each individual channel. The CMS
18587+ * account that the user authenticates with must be linked to the specified YouTube
18588+ * content owner.
18589+ */
18590+ public BatchGetStats setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
18591+ this.onBehalfOfContentOwner = onBehalfOfContentOwner;
18592+ return this;
18593+ }
18594+
18595+ /**
18596+ * Required. The `**part**` parameter specifies a comma-separated list of one or more
18597+ * `videoStat` resource properties that the API response will include. If the parameter
18598+ * identifies a property that contains child properties, the child properties will be
18599+ * included in the response. For example, in a `videoStat` resource, the `statistics`
18600+ * property contains `view_count` and `like_count`. As such, if you set
18601+ * `**part=snippet**`, the API response will contain all of those properties.
18602+ */
18603+ @com.google.api.client.util.Key
18604+ private java.util.List<java.lang.String> part;
18605+
18606+ /** Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat`
18607+ resource properties that the API response will include. If the parameter identifies a property that
18608+ contains child properties, the child properties will be included in the response. For example, in a
18609+ `videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if
18610+ you set `**part=snippet**`, the API response will contain all of those properties.
18611+ */
18612+ public java.util.List<java.lang.String> getPart() {
18613+ return part;
18614+ }
18615+
18616+ /**
18617+ * Required. The `**part**` parameter specifies a comma-separated list of one or more
18618+ * `videoStat` resource properties that the API response will include. If the parameter
18619+ * identifies a property that contains child properties, the child properties will be
18620+ * included in the response. For example, in a `videoStat` resource, the `statistics`
18621+ * property contains `view_count` and `like_count`. As such, if you set
18622+ * `**part=snippet**`, the API response will contain all of those properties.
18623+ */
18624+ public BatchGetStats setPart(java.util.List<java.lang.String> part) {
18625+ this.part = part;
18626+ return this;
18627+ }
18628+
18629+ /** Required. Return videos with the given ids. */
18630+ @com.google.api.client.util.Key
18631+ private java.util.List<java.lang.String> videoIds;
18632+
18633+ /** Required. Return videos with the given ids.
18634+ */
18635+ public java.util.List<java.lang.String> getVideoIds() {
18636+ return videoIds;
18637+ }
18638+
18639+ /** Required. Return videos with the given ids. */
18640+ public BatchGetStats setVideoIds(java.util.List<java.lang.String> videoIds) {
18641+ this.videoIds = videoIds;
18642+ return this;
18643+ }
18644+
18645+ @Override
18646+ public BatchGetStats set(String parameterName, Object value) {
18647+ return (BatchGetStats) super.set(parameterName, value);
18648+ }
18649+ }
18650+
18651+ }
1843118652 }
1843218653 }
1843318654
0 commit comments