@@ -17864,6 +17864,178 @@ public UpdateCommentThreads set(String parameterName, Object value) {
1786417864 }
1786517865 }
1786617866
17867+ /**
17868+ * An accessor for creating requests from the LiveChat collection.
17869+ *
17870+ * <p>The typical use is:</p>
17871+ * <pre>
17872+ * {@code YouTube youtube = new YouTube(...);}
17873+ * {@code YouTube.LiveChat.List request = youtube.liveChat().list(parameters ...)}
17874+ * </pre>
17875+ *
17876+ * @return the resource collection
17877+ */
17878+ public LiveChat liveChat() {
17879+ return new LiveChat();
17880+ }
17881+
17882+ /**
17883+ * The "liveChat" collection of methods.
17884+ */
17885+ public class LiveChat {
17886+
17887+ /**
17888+ * An accessor for creating requests from the Messages collection.
17889+ *
17890+ * <p>The typical use is:</p>
17891+ * <pre>
17892+ * {@code YouTube youtube = new YouTube(...);}
17893+ * {@code YouTube.Messages.List request = youtube.messages().list(parameters ...)}
17894+ * </pre>
17895+ *
17896+ * @return the resource collection
17897+ */
17898+ public Messages messages() {
17899+ return new Messages();
17900+ }
17901+
17902+ /**
17903+ * The "messages" collection of methods.
17904+ */
17905+ public class Messages {
17906+
17907+ /**
17908+ * Transition a durable chat event.
17909+ *
17910+ * Create a request for the method "messages.transition".
17911+ *
17912+ * This request holds the parameters needed by the youtube server. After setting any optional
17913+ * parameters, call the {@link Transition#execute()} method to invoke the remote operation.
17914+ *
17915+ * @return the request
17916+ */
17917+ public Transition transition() throws java.io.IOException {
17918+ Transition result = new Transition();
17919+ initialize(result);
17920+ return result;
17921+ }
17922+
17923+ public class Transition extends YouTubeRequest<com.google.api.services.youtube.model.LiveChatMessage> {
17924+
17925+ private static final String REST_PATH = "youtube/v3/liveChat/messages/transition";
17926+
17927+ /**
17928+ * Transition a durable chat event.
17929+ *
17930+ * Create a request for the method "messages.transition".
17931+ *
17932+ * This request holds the parameters needed by the the youtube server. After setting any optional
17933+ * parameters, call the {@link Transition#execute()} method to invoke the remote operation. <p>
17934+ * {@link
17935+ * Transition#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
17936+ * must be called to initialize this instance immediately after invoking the constructor. </p>
17937+ *
17938+ * @since 1.13
17939+ */
17940+ protected Transition() {
17941+ super(YouTube.this, "POST", REST_PATH, null, com.google.api.services.youtube.model.LiveChatMessage.class);
17942+ }
17943+
17944+ @Override
17945+ public Transition set$Xgafv(java.lang.String $Xgafv) {
17946+ return (Transition) super.set$Xgafv($Xgafv);
17947+ }
17948+
17949+ @Override
17950+ public Transition setAccessToken(java.lang.String accessToken) {
17951+ return (Transition) super.setAccessToken(accessToken);
17952+ }
17953+
17954+ @Override
17955+ public Transition setAlt(java.lang.String alt) {
17956+ return (Transition) super.setAlt(alt);
17957+ }
17958+
17959+ @Override
17960+ public Transition setCallback(java.lang.String callback) {
17961+ return (Transition) super.setCallback(callback);
17962+ }
17963+
17964+ @Override
17965+ public Transition setFields(java.lang.String fields) {
17966+ return (Transition) super.setFields(fields);
17967+ }
17968+
17969+ @Override
17970+ public Transition setKey(java.lang.String key) {
17971+ return (Transition) super.setKey(key);
17972+ }
17973+
17974+ @Override
17975+ public Transition setOauthToken(java.lang.String oauthToken) {
17976+ return (Transition) super.setOauthToken(oauthToken);
17977+ }
17978+
17979+ @Override
17980+ public Transition setPrettyPrint(java.lang.Boolean prettyPrint) {
17981+ return (Transition) super.setPrettyPrint(prettyPrint);
17982+ }
17983+
17984+ @Override
17985+ public Transition setQuotaUser(java.lang.String quotaUser) {
17986+ return (Transition) super.setQuotaUser(quotaUser);
17987+ }
17988+
17989+ @Override
17990+ public Transition setUploadType(java.lang.String uploadType) {
17991+ return (Transition) super.setUploadType(uploadType);
17992+ }
17993+
17994+ @Override
17995+ public Transition setUploadProtocol(java.lang.String uploadProtocol) {
17996+ return (Transition) super.setUploadProtocol(uploadProtocol);
17997+ }
17998+
17999+ /** The ID that uniquely identify the chat message event to transition. */
18000+ @com.google.api.client.util.Key
18001+ private java.lang.String id;
18002+
18003+ /** The ID that uniquely identify the chat message event to transition.
18004+ */
18005+ public java.lang.String getId() {
18006+ return id;
18007+ }
18008+
18009+ /** The ID that uniquely identify the chat message event to transition. */
18010+ public Transition setId(java.lang.String id) {
18011+ this.id = id;
18012+ return this;
18013+ }
18014+
18015+ /** The status to which the chat event is going to transition. */
18016+ @com.google.api.client.util.Key
18017+ private java.lang.String status;
18018+
18019+ /** The status to which the chat event is going to transition.
18020+ */
18021+ public java.lang.String getStatus() {
18022+ return status;
18023+ }
18024+
18025+ /** The status to which the chat event is going to transition. */
18026+ public Transition setStatus(java.lang.String status) {
18027+ this.status = status;
18028+ return this;
18029+ }
18030+
18031+ @Override
18032+ public Transition set(String parameterName, Object value) {
18033+ return (Transition) super.set(parameterName, value);
18034+ }
18035+ }
18036+
18037+ }
18038+ }
1786718039 }
1786818040 }
1786918041
0 commit comments