diff --git a/clients/google-api-services-youtube/v3/2.0.0/README.md b/clients/google-api-services-youtube/v3/2.0.0/README.md
index 807841356c9..a458a357892 100644
--- a/clients/google-api-services-youtube/v3/2.0.0/README.md
+++ b/clients/google-api-services-youtube/v3/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AvailabilityConfig extends com.google.api.client.json.GenericJson { + + /** + * Video is available in all regions except the ones specified in the config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AvailabilityConfigGlobalConfig globalConfig; + + /** + * Video is available in the specified regions only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AvailabilityConfigRegionsConfig regionsConfig; + + /** + * Video is available in all regions except the ones specified in the config. + * @return value or {@code null} for none + */ + public AvailabilityConfigGlobalConfig getGlobalConfig() { + return globalConfig; + } + + /** + * Video is available in all regions except the ones specified in the config. + * @param globalConfig globalConfig or {@code null} for none + */ + public AvailabilityConfig setGlobalConfig(AvailabilityConfigGlobalConfig globalConfig) { + this.globalConfig = globalConfig; + return this; + } + + /** + * Video is available in the specified regions only. + * @return value or {@code null} for none + */ + public AvailabilityConfigRegionsConfig getRegionsConfig() { + return regionsConfig; + } + + /** + * Video is available in the specified regions only. + * @param regionsConfig regionsConfig or {@code null} for none + */ + public AvailabilityConfig setRegionsConfig(AvailabilityConfigRegionsConfig regionsConfig) { + this.regionsConfig = regionsConfig; + return this; + } + + @Override + public AvailabilityConfig set(String fieldName, Object value) { + return (AvailabilityConfig) super.set(fieldName, value); + } + + @Override + public AvailabilityConfig clone() { + return (AvailabilityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/AvailabilityConfigGlobalConfig.java b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/AvailabilityConfigGlobalConfig.java new file mode 100644 index 00000000000..dbdfc09a852 --- /dev/null +++ b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/AvailabilityConfigGlobalConfig.java @@ -0,0 +1,99 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.youtube.model; + +/** + * Video is available in all regions except the ones specified in the excluded_region_codes list. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AvailabilityConfigGlobalConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Regions where video is blocked + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AvailabilityConfigRegionsConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. List of regions and time windows where video is available. If a region is specified + * multiple times, the union of all intervals is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AvailabilityConfigRegionsConfigRegionInterval extends com.google.api.client.json.GenericJson { + + /** + * Time window where video is available for the region. Not supported for upcoming / active live + * broadcasts. If start time is unspecified, video is already available If end time is + * unspecified, video is available forever Specified start and end times cannot be more than five + * years in the future. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Interval interval; + + /** + * Required. Region where video is available + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + + /** + * Time window where video is available for the region. Not supported for upcoming / active live + * broadcasts. If start time is unspecified, video is already available If end time is + * unspecified, video is available forever Specified start and end times cannot be more than five + * years in the future. + * @return value or {@code null} for none + */ + public Interval getInterval() { + return interval; + } + + /** + * Time window where video is available for the region. Not supported for upcoming / active live + * broadcasts. If start time is unspecified, video is already available If end time is + * unspecified, video is available forever Specified start and end times cannot be more than five + * years in the future. + * @param interval interval or {@code null} for none + */ + public AvailabilityConfigRegionsConfigRegionInterval setInterval(Interval interval) { + this.interval = interval; + return this; + } + + /** + * Required. Region where video is available + * @return value or {@code null} for none + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Required. Region where video is available + * @param regionCode regionCode or {@code null} for none + */ + public AvailabilityConfigRegionsConfigRegionInterval setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + + @Override + public AvailabilityConfigRegionsConfigRegionInterval set(String fieldName, Object value) { + return (AvailabilityConfigRegionsConfigRegionInterval) super.set(fieldName, value); + } + + @Override + public AvailabilityConfigRegionsConfigRegionInterval clone() { + return (AvailabilityConfigRegionsConfigRegionInterval) super.clone(); + } + +} diff --git a/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/Interval.java b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/Interval.java new file mode 100644 index 00000000000..83908170f0e --- /dev/null +++ b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/Interval.java @@ -0,0 +1,99 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.youtube.model; + +/** + * Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end + * (exclusive). The start must be less than or equal to the end. When the start equals the end, the + * interval is empty (matches no time). When both start and end are unspecified, the interval + * matches any time. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Interval extends com.google.api.client.json.GenericJson { + + /** + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will + * have to be before the end. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval + * will have to be the same or after the start. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will + * have to be before the end. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will + * have to be before the end. + * @param endTime endTime or {@code null} for none + */ + public Interval setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval + * will have to be the same or after the start. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval + * will have to be the same or after the start. + * @param startTime startTime or {@code null} for none + */ + public Interval setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public Interval set(String fieldName, Object value) { + return (Interval) super.set(fieldName, value); + } + + @Override + public Interval clone() { + return (Interval) super.clone(); + } + +} diff --git a/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/LiveBroadcastContentDetails.java b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/LiveBroadcastContentDetails.java index 2875f17138a..be2ce10d486 100644 --- a/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/LiveBroadcastContentDetails.java +++ b/clients/google-api-services-youtube/v3/2.0.0/com/google/api/services/youtube/model/LiveBroadcastContentDetails.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class LiveBroadcastContentDetails extends com.google.api.client.json.GenericJson { + /** + * Optional. The broadcast's availability config. Used to set specific region availability or + * block specific regions It is optional - if not set, it is not enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AvailabilityConfig availabilityConfig; + /** * This value uniquely identifies the live stream bound to the broadcast. * The value may be {@code null}. @@ -171,6 +179,25 @@ public final class LiveBroadcastContentDetails extends com.google.api.client.jso @com.google.api.client.util.Key private java.lang.String stereoLayout; + /** + * Optional. The broadcast's availability config. Used to set specific region availability or + * block specific regions It is optional - if not set, it is not enforced. + * @return value or {@code null} for none + */ + public AvailabilityConfig getAvailabilityConfig() { + return availabilityConfig; + } + + /** + * Optional. The broadcast's availability config. Used to set specific region availability or + * block specific regions It is optional - if not set, it is not enforced. + * @param availabilityConfig availabilityConfig or {@code null} for none + */ + public LiveBroadcastContentDetails setAvailabilityConfig(AvailabilityConfig availabilityConfig) { + this.availabilityConfig = availabilityConfig; + return this; + } + /** * This value uniquely identifies the live stream bound to the broadcast. * @return value or {@code null} for none diff --git a/clients/google-api-services-youtube/v3/2.0.0/pom.xml b/clients/google-api-services-youtube/v3/2.0.0/pom.xml index 718d9489ddd..5ba788bde32 100644 --- a/clients/google-api-services-youtube/v3/2.0.0/pom.xml +++ b/clients/google-api-services-youtube/v3/2.0.0/pom.xml @@ -8,8 +8,8 @@