@@ -18428,227 +18428,6 @@ 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- /** Required. Return videos with the given ids. */
18554- @com.google.api.client.util.Key
18555- private java.util.List<java.lang.String> id;
18556-
18557- /** Required. Return videos with the given ids.
18558- */
18559- public java.util.List<java.lang.String> getId() {
18560- return id;
18561- }
18562-
18563- /** Required. Return videos with the given ids. */
18564- public BatchGetStats setId(java.util.List<java.lang.String> id) {
18565- this.id = id;
18566- return this;
18567- }
18568-
18569- /**
18570- * Optional. **Note:** This parameter is intended exclusively for YouTube content
18571- * partners. The `onBehalfOfContentOwner` parameter indicates that the request's
18572- * authorization credentials identify a YouTube CMS user who is acting on behalf of the
18573- * content owner specified in the parameter value. This parameter is intended for YouTube
18574- * content partners that own and manage many different YouTube channels. It allows content
18575- * owners to authenticate once and get access to all their video and channel data, without
18576- * having to provide authentication credentials for each individual channel. The CMS
18577- * account that the user authenticates with must be linked to the specified YouTube
18578- * content owner.
18579- */
18580- @com.google.api.client.util.Key
18581- private java.lang.String onBehalfOfContentOwner;
18582-
18583- /** Optional. **Note:** This parameter is intended exclusively for YouTube content partners. The
18584- `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify
18585- a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value.
18586- This parameter is intended for YouTube content partners that own and manage many different YouTube
18587- channels. It allows content owners to authenticate once and get access to all their video and
18588- channel data, without having to provide authentication credentials for each individual channel. The
18589- CMS account that the user authenticates with must be linked to the specified YouTube content owner.
18590- */
18591- public java.lang.String getOnBehalfOfContentOwner() {
18592- return onBehalfOfContentOwner;
18593- }
18594-
18595- /**
18596- * Optional. **Note:** This parameter is intended exclusively for YouTube content
18597- * partners. The `onBehalfOfContentOwner` parameter indicates that the request's
18598- * authorization credentials identify a YouTube CMS user who is acting on behalf of the
18599- * content owner specified in the parameter value. This parameter is intended for YouTube
18600- * content partners that own and manage many different YouTube channels. It allows content
18601- * owners to authenticate once and get access to all their video and channel data, without
18602- * having to provide authentication credentials for each individual channel. The CMS
18603- * account that the user authenticates with must be linked to the specified YouTube
18604- * content owner.
18605- */
18606- public BatchGetStats setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner) {
18607- this.onBehalfOfContentOwner = onBehalfOfContentOwner;
18608- return this;
18609- }
18610-
18611- /**
18612- * Required. The `**part**` parameter specifies a comma-separated list of one or more
18613- * `videoStat` resource properties that the API response will include. If the parameter
18614- * identifies a property that contains child properties, the child properties will be
18615- * included in the response. For example, in a `videoStat` resource, the `statistics`
18616- * property contains `view_count` and `like_count`. As such, if you set
18617- * `**part=snippet**`, the API response will contain all of those properties.
18618- */
18619- @com.google.api.client.util.Key
18620- private java.util.List<java.lang.String> part;
18621-
18622- /** Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat`
18623- resource properties that the API response will include. If the parameter identifies a property that
18624- contains child properties, the child properties will be included in the response. For example, in a
18625- `videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if
18626- you set `**part=snippet**`, the API response will contain all of those properties.
18627- */
18628- public java.util.List<java.lang.String> getPart() {
18629- return part;
18630- }
18631-
18632- /**
18633- * Required. The `**part**` parameter specifies a comma-separated list of one or more
18634- * `videoStat` resource properties that the API response will include. If the parameter
18635- * identifies a property that contains child properties, the child properties will be
18636- * included in the response. For example, in a `videoStat` resource, the `statistics`
18637- * property contains `view_count` and `like_count`. As such, if you set
18638- * `**part=snippet**`, the API response will contain all of those properties.
18639- */
18640- public BatchGetStats setPart(java.util.List<java.lang.String> part) {
18641- this.part = part;
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- }
1865218431 }
1865318432 }
1865418433
0 commit comments