@@ -7869,21 +7869,21 @@ public List setHl(java.lang.String hl) {
78697869
78707870 /**
78717871 * The *maxResults* parameter specifies the maximum number of items that should be returned in
7872- * the result set.
7872+ * the result set. Not used in the streaming RPC.
78737873 */
78747874 @com.google.api.client.util.Key
78757875 private java.lang.Long maxResults;
78767876
78777877 /** The *maxResults* parameter specifies the maximum number of items that should be returned in the
7878- result set. [default: 500] [minimum: 200] [maximum: 2000]
7878+ result set. Not used in the streaming RPC. [default: 500] [minimum: 200] [maximum: 2000]
78797879 */
78807880 public java.lang.Long getMaxResults() {
78817881 return maxResults;
78827882 }
78837883
78847884 /**
78857885 * The *maxResults* parameter specifies the maximum number of items that should be returned in
7886- * the result set.
7886+ * the result set. Not used in the streaming RPC.
78877887 */
78887888 public List setMaxResults(java.lang.Long maxResults) {
78897889 this.maxResults = maxResults;
@@ -17993,6 +17993,280 @@ public UpdateCommentThreads set(String parameterName, Object value) {
1799317993 }
1799417994 }
1799517995
17996+ /**
17997+ * An accessor for creating requests from the LiveChat collection.
17998+ *
17999+ * <p>The typical use is:</p>
18000+ * <pre>
18001+ * {@code YouTube youtube = new YouTube(...);}
18002+ * {@code YouTube.LiveChat.List request = youtube.liveChat().list(parameters ...)}
18003+ * </pre>
18004+ *
18005+ * @return the resource collection
18006+ */
18007+ public LiveChat liveChat() {
18008+ return new LiveChat();
18009+ }
18010+
18011+ /**
18012+ * The "liveChat" collection of methods.
18013+ */
18014+ public class LiveChat {
18015+
18016+ /**
18017+ * An accessor for creating requests from the Messages collection.
18018+ *
18019+ * <p>The typical use is:</p>
18020+ * <pre>
18021+ * {@code YouTube youtube = new YouTube(...);}
18022+ * {@code YouTube.Messages.List request = youtube.messages().list(parameters ...)}
18023+ * </pre>
18024+ *
18025+ * @return the resource collection
18026+ */
18027+ public Messages messages() {
18028+ return new Messages();
18029+ }
18030+
18031+ /**
18032+ * The "messages" collection of methods.
18033+ */
18034+ public class Messages {
18035+
18036+ /**
18037+ * Allows a user to load live chat through a server-streamed RPC.
18038+ *
18039+ * Create a request for the method "messages.stream".
18040+ *
18041+ * This request holds the parameters needed by the youtube server. After setting any optional
18042+ * parameters, call the {@link Stream#execute()} method to invoke the remote operation.
18043+ *
18044+ * @return the request
18045+ */
18046+ public Stream stream() throws java.io.IOException {
18047+ Stream result = new Stream();
18048+ initialize(result);
18049+ return result;
18050+ }
18051+
18052+ public class Stream extends YouTubeRequest<com.google.api.services.youtube.model.LiveChatMessageListResponse> {
18053+
18054+ private static final String REST_PATH = "youtube/v3/liveChat/messages/stream";
18055+
18056+ /**
18057+ * Allows a user to load live chat through a server-streamed RPC.
18058+ *
18059+ * Create a request for the method "messages.stream".
18060+ *
18061+ * This request holds the parameters needed by the the youtube server. After setting any optional
18062+ * parameters, call the {@link Stream#execute()} method to invoke the remote operation. <p> {@link
18063+ * Stream#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
18064+ * be called to initialize this instance immediately after invoking the constructor. </p>
18065+ *
18066+ * @since 1.13
18067+ */
18068+ protected Stream() {
18069+ super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.LiveChatMessageListResponse.class);
18070+ }
18071+
18072+ @Override
18073+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
18074+ return super.executeUsingHead();
18075+ }
18076+
18077+ @Override
18078+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
18079+ return super.buildHttpRequestUsingHead();
18080+ }
18081+
18082+ @Override
18083+ public Stream set$Xgafv(java.lang.String $Xgafv) {
18084+ return (Stream) super.set$Xgafv($Xgafv);
18085+ }
18086+
18087+ @Override
18088+ public Stream setAccessToken(java.lang.String accessToken) {
18089+ return (Stream) super.setAccessToken(accessToken);
18090+ }
18091+
18092+ @Override
18093+ public Stream setAlt(java.lang.String alt) {
18094+ return (Stream) super.setAlt(alt);
18095+ }
18096+
18097+ @Override
18098+ public Stream setCallback(java.lang.String callback) {
18099+ return (Stream) super.setCallback(callback);
18100+ }
18101+
18102+ @Override
18103+ public Stream setFields(java.lang.String fields) {
18104+ return (Stream) super.setFields(fields);
18105+ }
18106+
18107+ @Override
18108+ public Stream setKey(java.lang.String key) {
18109+ return (Stream) super.setKey(key);
18110+ }
18111+
18112+ @Override
18113+ public Stream setOauthToken(java.lang.String oauthToken) {
18114+ return (Stream) super.setOauthToken(oauthToken);
18115+ }
18116+
18117+ @Override
18118+ public Stream setPrettyPrint(java.lang.Boolean prettyPrint) {
18119+ return (Stream) super.setPrettyPrint(prettyPrint);
18120+ }
18121+
18122+ @Override
18123+ public Stream setQuotaUser(java.lang.String quotaUser) {
18124+ return (Stream) super.setQuotaUser(quotaUser);
18125+ }
18126+
18127+ @Override
18128+ public Stream setUploadType(java.lang.String uploadType) {
18129+ return (Stream) super.setUploadType(uploadType);
18130+ }
18131+
18132+ @Override
18133+ public Stream setUploadProtocol(java.lang.String uploadProtocol) {
18134+ return (Stream) super.setUploadProtocol(uploadProtocol);
18135+ }
18136+
18137+ /**
18138+ * Specifies the localization language in which the system messages should be returned.
18139+ */
18140+ @com.google.api.client.util.Key
18141+ private java.lang.String hl;
18142+
18143+ /** Specifies the localization language in which the system messages should be returned.
18144+ */
18145+ public java.lang.String getHl() {
18146+ return hl;
18147+ }
18148+
18149+ /**
18150+ * Specifies the localization language in which the system messages should be returned.
18151+ */
18152+ public Stream setHl(java.lang.String hl) {
18153+ this.hl = hl;
18154+ return this;
18155+ }
18156+
18157+ /** The id of the live chat for which comments should be returned. */
18158+ @com.google.api.client.util.Key
18159+ private java.lang.String liveChatId;
18160+
18161+ /** The id of the live chat for which comments should be returned.
18162+ */
18163+ public java.lang.String getLiveChatId() {
18164+ return liveChatId;
18165+ }
18166+
18167+ /** The id of the live chat for which comments should be returned. */
18168+ public Stream setLiveChatId(java.lang.String liveChatId) {
18169+ this.liveChatId = liveChatId;
18170+ return this;
18171+ }
18172+
18173+ /**
18174+ * The *maxResults* parameter specifies the maximum number of items that should be
18175+ * returned in the result set. Not used in the streaming RPC.
18176+ */
18177+ @com.google.api.client.util.Key
18178+ private java.lang.Long maxResults;
18179+
18180+ /** The *maxResults* parameter specifies the maximum number of items that should be returned in the
18181+ result set. Not used in the streaming RPC. [default: 500] [minimum: 200] [maximum: 2000]
18182+ */
18183+ public java.lang.Long getMaxResults() {
18184+ return maxResults;
18185+ }
18186+
18187+ /**
18188+ * The *maxResults* parameter specifies the maximum number of items that should be
18189+ * returned in the result set. Not used in the streaming RPC.
18190+ */
18191+ public Stream setMaxResults(java.lang.Long maxResults) {
18192+ this.maxResults = maxResults;
18193+ return this;
18194+ }
18195+
18196+ /**
18197+ * The *pageToken* parameter identifies a specific page in the result set that should be
18198+ * returned. In an API response, the nextPageToken property identify other pages that
18199+ * could be retrieved.
18200+ */
18201+ @com.google.api.client.util.Key
18202+ private java.lang.String pageToken;
18203+
18204+ /** The *pageToken* parameter identifies a specific page in the result set that should be returned. In
18205+ an API response, the nextPageToken property identify other pages that could be retrieved.
18206+ */
18207+ public java.lang.String getPageToken() {
18208+ return pageToken;
18209+ }
18210+
18211+ /**
18212+ * The *pageToken* parameter identifies a specific page in the result set that should be
18213+ * returned. In an API response, the nextPageToken property identify other pages that
18214+ * could be retrieved.
18215+ */
18216+ public Stream setPageToken(java.lang.String pageToken) {
18217+ this.pageToken = pageToken;
18218+ return this;
18219+ }
18220+
18221+ /**
18222+ * The *part* parameter specifies the liveChatComment resource parts that the API
18223+ * response will include. Supported values are id, snippet, and authorDetails.
18224+ */
18225+ @com.google.api.client.util.Key
18226+ private java.util.List<java.lang.String> part;
18227+
18228+ /** The *part* parameter specifies the liveChatComment resource parts that the API response will
18229+ include. Supported values are id, snippet, and authorDetails.
18230+ */
18231+ public java.util.List<java.lang.String> getPart() {
18232+ return part;
18233+ }
18234+
18235+ /**
18236+ * The *part* parameter specifies the liveChatComment resource parts that the API
18237+ * response will include. Supported values are id, snippet, and authorDetails.
18238+ */
18239+ public Stream setPart(java.util.List<java.lang.String> part) {
18240+ this.part = part;
18241+ return this;
18242+ }
18243+
18244+ /** Specifies the size of the profile image that should be returned for each user. */
18245+ @com.google.api.client.util.Key
18246+ private java.lang.Long profileImageSize;
18247+
18248+ /** Specifies the size of the profile image that should be returned for each user.
18249+
18250+ [minimum: 16] [maximum: 720]
18251+ */
18252+ public java.lang.Long getProfileImageSize() {
18253+ return profileImageSize;
18254+ }
18255+
18256+ /** Specifies the size of the profile image that should be returned for each user. */
18257+ public Stream setProfileImageSize(java.lang.Long profileImageSize) {
18258+ this.profileImageSize = profileImageSize;
18259+ return this;
18260+ }
18261+
18262+ @Override
18263+ public Stream set(String parameterName, Object value) {
18264+ return (Stream) super.set(parameterName, value);
18265+ }
18266+ }
18267+
18268+ }
18269+ }
1799618270 }
1799718271 }
1799818272
0 commit comments