com.google.api.services.youtube.model.LiveChatMessageSnippet Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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://code.google.com/p/google-apis-client-generator/
* (build: 2017-01-11 18:31:16 UTC)
* on 2017-02-02 at 07:18:06 UTC
* Modify at your own risk.
*/
package com.google.api.services.youtube.model;
/**
* Model definition for LiveChatMessageSnippet.
*
* 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. For a detailed explanation see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class LiveChatMessageSnippet extends com.google.api.client.json.GenericJson {
/**
* The ID of the user that authored this message, this field is not always filled.
* textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the
* broadcast newSponsorEvent - the user that just became a sponsor messageDeletedEvent - the
* moderator that took the action messageRetractedEvent - the author that retracted their message
* userBannedEvent - the moderator that took the action superChatEvent - the user that made the
* purchase
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String authorChannelId;
/**
* Contains a string that can be displayed to the user. If this field is not present the message
* is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String displayMessage;
/**
* Details about the funding event, this is only set if the type is 'fanFundingEvent'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatFanFundingEventDetails fanFundingEventDetails;
/**
* Whether the message has display content that should be displayed to users.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean hasDisplayContent;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String liveChatId;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatMessageDeletedDetails messageDeletedDetails;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatMessageRetractedDetails messageRetractedDetails;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatPollClosedDetails pollClosedDetails;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatPollEditedDetails pollEditedDetails;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatPollOpenedDetails pollOpenedDetails;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatPollVotedDetails pollVotedDetails;
/**
* The date and time when the message was orignally published. The value is specified in ISO 8601
* (YYYY-MM-DDThh:mm:ss.sZ) format.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private com.google.api.client.util.DateTime publishedAt;
/**
* Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatSuperChatDetails superChatDetails;
/**
* Details about the text message, this is only set if the type is 'textMessageEvent'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatTextMessageDetails textMessageDetails;
/**
* The type of message, this will always be present, it determines the contents of the message as
* well as which fields will be present.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LiveChatUserBannedMessageDetails userBannedDetails;
/**
* The ID of the user that authored this message, this field is not always filled.
* textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the
* broadcast newSponsorEvent - the user that just became a sponsor messageDeletedEvent - the
* moderator that took the action messageRetractedEvent - the author that retracted their message
* userBannedEvent - the moderator that took the action superChatEvent - the user that made the
* purchase
* @return value or {@code null} for none
*/
public java.lang.String getAuthorChannelId() {
return authorChannelId;
}
/**
* The ID of the user that authored this message, this field is not always filled.
* textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the
* broadcast newSponsorEvent - the user that just became a sponsor messageDeletedEvent - the
* moderator that took the action messageRetractedEvent - the author that retracted their message
* userBannedEvent - the moderator that took the action superChatEvent - the user that made the
* purchase
* @param authorChannelId authorChannelId or {@code null} for none
*/
public LiveChatMessageSnippet setAuthorChannelId(java.lang.String authorChannelId) {
this.authorChannelId = authorChannelId;
return this;
}
/**
* Contains a string that can be displayed to the user. If this field is not present the message
* is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
* @return value or {@code null} for none
*/
public java.lang.String getDisplayMessage() {
return displayMessage;
}
/**
* Contains a string that can be displayed to the user. If this field is not present the message
* is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
* @param displayMessage displayMessage or {@code null} for none
*/
public LiveChatMessageSnippet setDisplayMessage(java.lang.String displayMessage) {
this.displayMessage = displayMessage;
return this;
}
/**
* Details about the funding event, this is only set if the type is 'fanFundingEvent'.
* @return value or {@code null} for none
*/
public LiveChatFanFundingEventDetails getFanFundingEventDetails() {
return fanFundingEventDetails;
}
/**
* Details about the funding event, this is only set if the type is 'fanFundingEvent'.
* @param fanFundingEventDetails fanFundingEventDetails or {@code null} for none
*/
public LiveChatMessageSnippet setFanFundingEventDetails(LiveChatFanFundingEventDetails fanFundingEventDetails) {
this.fanFundingEventDetails = fanFundingEventDetails;
return this;
}
/**
* Whether the message has display content that should be displayed to users.
* @return value or {@code null} for none
*/
public java.lang.Boolean getHasDisplayContent() {
return hasDisplayContent;
}
/**
* Whether the message has display content that should be displayed to users.
* @param hasDisplayContent hasDisplayContent or {@code null} for none
*/
public LiveChatMessageSnippet setHasDisplayContent(java.lang.Boolean hasDisplayContent) {
this.hasDisplayContent = hasDisplayContent;
return this;
}
/**
* @return value or {@code null} for none
*/
public java.lang.String getLiveChatId() {
return liveChatId;
}
/**
* @param liveChatId liveChatId or {@code null} for none
*/
public LiveChatMessageSnippet setLiveChatId(java.lang.String liveChatId) {
this.liveChatId = liveChatId;
return this;
}
/**
* @return value or {@code null} for none
*/
public LiveChatMessageDeletedDetails getMessageDeletedDetails() {
return messageDeletedDetails;
}
/**
* @param messageDeletedDetails messageDeletedDetails or {@code null} for none
*/
public LiveChatMessageSnippet setMessageDeletedDetails(LiveChatMessageDeletedDetails messageDeletedDetails) {
this.messageDeletedDetails = messageDeletedDetails;
return this;
}
/**
* @return value or {@code null} for none
*/
public LiveChatMessageRetractedDetails getMessageRetractedDetails() {
return messageRetractedDetails;
}
/**
* @param messageRetractedDetails messageRetractedDetails or {@code null} for none
*/
public LiveChatMessageSnippet setMessageRetractedDetails(LiveChatMessageRetractedDetails messageRetractedDetails) {
this.messageRetractedDetails = messageRetractedDetails;
return this;
}
/**
* @return value or {@code null} for none
*/
public LiveChatPollClosedDetails getPollClosedDetails() {
return pollClosedDetails;
}
/**
* @param pollClosedDetails pollClosedDetails or {@code null} for none
*/
public LiveChatMessageSnippet setPollClosedDetails(LiveChatPollClosedDetails pollClosedDetails) {
this.pollClosedDetails = pollClosedDetails;
return this;
}
/**
* @return value or {@code null} for none
*/
public LiveChatPollEditedDetails getPollEditedDetails() {
return pollEditedDetails;
}
/**
* @param pollEditedDetails pollEditedDetails or {@code null} for none
*/
public LiveChatMessageSnippet setPollEditedDetails(LiveChatPollEditedDetails pollEditedDetails) {
this.pollEditedDetails = pollEditedDetails;
return this;
}
/**
* @return value or {@code null} for none
*/
public LiveChatPollOpenedDetails getPollOpenedDetails() {
return pollOpenedDetails;
}
/**
* @param pollOpenedDetails pollOpenedDetails or {@code null} for none
*/
public LiveChatMessageSnippet setPollOpenedDetails(LiveChatPollOpenedDetails pollOpenedDetails) {
this.pollOpenedDetails = pollOpenedDetails;
return this;
}
/**
* @return value or {@code null} for none
*/
public LiveChatPollVotedDetails getPollVotedDetails() {
return pollVotedDetails;
}
/**
* @param pollVotedDetails pollVotedDetails or {@code null} for none
*/
public LiveChatMessageSnippet setPollVotedDetails(LiveChatPollVotedDetails pollVotedDetails) {
this.pollVotedDetails = pollVotedDetails;
return this;
}
/**
* The date and time when the message was orignally published. The value is specified in ISO 8601
* (YYYY-MM-DDThh:mm:ss.sZ) format.
* @return value or {@code null} for none
*/
public com.google.api.client.util.DateTime getPublishedAt() {
return publishedAt;
}
/**
* The date and time when the message was orignally published. The value is specified in ISO 8601
* (YYYY-MM-DDThh:mm:ss.sZ) format.
* @param publishedAt publishedAt or {@code null} for none
*/
public LiveChatMessageSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt) {
this.publishedAt = publishedAt;
return this;
}
/**
* Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
* @return value or {@code null} for none
*/
public LiveChatSuperChatDetails getSuperChatDetails() {
return superChatDetails;
}
/**
* Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
* @param superChatDetails superChatDetails or {@code null} for none
*/
public LiveChatMessageSnippet setSuperChatDetails(LiveChatSuperChatDetails superChatDetails) {
this.superChatDetails = superChatDetails;
return this;
}
/**
* Details about the text message, this is only set if the type is 'textMessageEvent'.
* @return value or {@code null} for none
*/
public LiveChatTextMessageDetails getTextMessageDetails() {
return textMessageDetails;
}
/**
* Details about the text message, this is only set if the type is 'textMessageEvent'.
* @param textMessageDetails textMessageDetails or {@code null} for none
*/
public LiveChatMessageSnippet setTextMessageDetails(LiveChatTextMessageDetails textMessageDetails) {
this.textMessageDetails = textMessageDetails;
return this;
}
/**
* The type of message, this will always be present, it determines the contents of the message as
* well as which fields will be present.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* The type of message, this will always be present, it determines the contents of the message as
* well as which fields will be present.
* @param type type or {@code null} for none
*/
public LiveChatMessageSnippet setType(java.lang.String type) {
this.type = type;
return this;
}
/**
* @return value or {@code null} for none
*/
public LiveChatUserBannedMessageDetails getUserBannedDetails() {
return userBannedDetails;
}
/**
* @param userBannedDetails userBannedDetails or {@code null} for none
*/
public LiveChatMessageSnippet setUserBannedDetails(LiveChatUserBannedMessageDetails userBannedDetails) {
this.userBannedDetails = userBannedDetails;
return this;
}
@Override
public LiveChatMessageSnippet set(String fieldName, Object value) {
return (LiveChatMessageSnippet) super.set(fieldName, value);
}
@Override
public LiveChatMessageSnippet clone() {
return (LiveChatMessageSnippet) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy