target.apidocs.com.google.api.services.youtube.model.LiveChatMessageSnippet.html Maven / Gradle / Ivy
LiveChatMessageSnippet (YouTube Data API v3 v3-rev20240909-2.0.0)
com.google.api.services.youtube.model
Class LiveChatMessageSnippet
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.youtube.model.LiveChatMessageSnippet
-
public final class LiveChatMessageSnippet
extends com.google.api.client.json.GenericJson
Next ID: 34
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
LiveChatMessageSnippet()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
LiveChatMessageSnippet
clone()
String
getAuthorChannelId()
The ID of the user that authored this message, this field is not always filled.
String
getDisplayMessage()
Contains a string that can be displayed to the user.
LiveChatFanFundingEventDetails
getFanFundingEventDetails()
Details about the funding event, this is only set if the type is 'fanFundingEvent'.
LiveChatGiftMembershipReceivedDetails
getGiftMembershipReceivedDetails()
Details about the Gift Membership Received event, this is only set if the type is
'giftMembershipReceivedEvent'.
Boolean
getHasDisplayContent()
Whether the message has display content that should be displayed to users.
String
getLiveChatId()
LiveChatMemberMilestoneChatDetails
getMemberMilestoneChatDetails()
Details about the Member Milestone Chat event, this is only set if the type is
'memberMilestoneChatEvent'.
LiveChatMembershipGiftingDetails
getMembershipGiftingDetails()
Details about the Membership Gifting event, this is only set if the type is
'membershipGiftingEvent'.
LiveChatMessageDeletedDetails
getMessageDeletedDetails()
LiveChatMessageRetractedDetails
getMessageRetractedDetails()
LiveChatNewSponsorDetails
getNewSponsorDetails()
Details about the New Member Announcement event, this is only set if the type is
'newSponsorEvent'.
LiveChatPollDetails
getPollDetails()
Details about the poll event, this is only set if the type is 'pollEvent'.
com.google.api.client.util.DateTime
getPublishedAt()
The date and time when the message was orignally published.
LiveChatSuperChatDetails
getSuperChatDetails()
Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
LiveChatSuperStickerDetails
getSuperStickerDetails()
Details about the Super Sticker event, this is only set if the type is 'superStickerEvent'.
LiveChatTextMessageDetails
getTextMessageDetails()
Details about the text message, this is only set if the type is 'textMessageEvent'.
String
getType()
The type of message, this will always be present, it determines the contents of the message as
well as which fields will be present.
LiveChatUserBannedMessageDetails
getUserBannedDetails()
LiveChatMessageSnippet
set(String fieldName,
Object value)
LiveChatMessageSnippet
setAuthorChannelId(String authorChannelId)
The ID of the user that authored this message, this field is not always filled.
LiveChatMessageSnippet
setDisplayMessage(String displayMessage)
Contains a string that can be displayed to the user.
LiveChatMessageSnippet
setFanFundingEventDetails(LiveChatFanFundingEventDetails fanFundingEventDetails)
Details about the funding event, this is only set if the type is 'fanFundingEvent'.
LiveChatMessageSnippet
setGiftMembershipReceivedDetails(LiveChatGiftMembershipReceivedDetails giftMembershipReceivedDetails)
Details about the Gift Membership Received event, this is only set if the type is
'giftMembershipReceivedEvent'.
LiveChatMessageSnippet
setHasDisplayContent(Boolean hasDisplayContent)
Whether the message has display content that should be displayed to users.
LiveChatMessageSnippet
setLiveChatId(String liveChatId)
LiveChatMessageSnippet
setMemberMilestoneChatDetails(LiveChatMemberMilestoneChatDetails memberMilestoneChatDetails)
Details about the Member Milestone Chat event, this is only set if the type is
'memberMilestoneChatEvent'.
LiveChatMessageSnippet
setMembershipGiftingDetails(LiveChatMembershipGiftingDetails membershipGiftingDetails)
Details about the Membership Gifting event, this is only set if the type is
'membershipGiftingEvent'.
LiveChatMessageSnippet
setMessageDeletedDetails(LiveChatMessageDeletedDetails messageDeletedDetails)
LiveChatMessageSnippet
setMessageRetractedDetails(LiveChatMessageRetractedDetails messageRetractedDetails)
LiveChatMessageSnippet
setNewSponsorDetails(LiveChatNewSponsorDetails newSponsorDetails)
Details about the New Member Announcement event, this is only set if the type is
'newSponsorEvent'.
LiveChatMessageSnippet
setPollDetails(LiveChatPollDetails pollDetails)
Details about the poll event, this is only set if the type is 'pollEvent'.
LiveChatMessageSnippet
setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time when the message was orignally published.
LiveChatMessageSnippet
setSuperChatDetails(LiveChatSuperChatDetails superChatDetails)
Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
LiveChatMessageSnippet
setSuperStickerDetails(LiveChatSuperStickerDetails superStickerDetails)
Details about the Super Sticker event, this is only set if the type is 'superStickerEvent'.
LiveChatMessageSnippet
setTextMessageDetails(LiveChatTextMessageDetails textMessageDetails)
Details about the text message, this is only set if the type is 'textMessageEvent'.
LiveChatMessageSnippet
setType(String 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.
LiveChatMessageSnippet
setUserBannedDetails(LiveChatUserBannedMessageDetails userBannedDetails)
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAuthorChannelId
public String getAuthorChannelId()
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 memberMilestoneChatEvent - the
member that sent the message membershipGiftingEvent - the user that made the purchase
giftMembershipReceivedEvent - the user that received the gift membership 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 superStickerEvent - the user that made the purchase pollEvent - the user that
created the poll
- Returns:
- value or
null
for none
-
setAuthorChannelId
public LiveChatMessageSnippet setAuthorChannelId(String 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 memberMilestoneChatEvent - the
member that sent the message membershipGiftingEvent - the user that made the purchase
giftMembershipReceivedEvent - the user that received the gift membership 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 superStickerEvent - the user that made the purchase pollEvent - the user that
created the poll
- Parameters:
authorChannelId
- authorChannelId or null
for none
-
getDisplayMessage
public String getDisplayMessage()
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.
- Returns:
- value or
null
for none
-
setDisplayMessage
public LiveChatMessageSnippet setDisplayMessage(String 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.
- Parameters:
displayMessage
- displayMessage or null
for none
-
getFanFundingEventDetails
public LiveChatFanFundingEventDetails getFanFundingEventDetails()
Details about the funding event, this is only set if the type is 'fanFundingEvent'.
- Returns:
- value or
null
for none
-
setFanFundingEventDetails
public LiveChatMessageSnippet setFanFundingEventDetails(LiveChatFanFundingEventDetails fanFundingEventDetails)
Details about the funding event, this is only set if the type is 'fanFundingEvent'.
- Parameters:
fanFundingEventDetails
- fanFundingEventDetails or null
for none
-
getGiftMembershipReceivedDetails
public LiveChatGiftMembershipReceivedDetails getGiftMembershipReceivedDetails()
Details about the Gift Membership Received event, this is only set if the type is
'giftMembershipReceivedEvent'.
- Returns:
- value or
null
for none
-
setGiftMembershipReceivedDetails
public LiveChatMessageSnippet setGiftMembershipReceivedDetails(LiveChatGiftMembershipReceivedDetails giftMembershipReceivedDetails)
Details about the Gift Membership Received event, this is only set if the type is
'giftMembershipReceivedEvent'.
- Parameters:
giftMembershipReceivedDetails
- giftMembershipReceivedDetails or null
for none
-
getHasDisplayContent
public Boolean getHasDisplayContent()
Whether the message has display content that should be displayed to users.
- Returns:
- value or
null
for none
-
setHasDisplayContent
public LiveChatMessageSnippet setHasDisplayContent(Boolean hasDisplayContent)
Whether the message has display content that should be displayed to users.
- Parameters:
hasDisplayContent
- hasDisplayContent or null
for none
-
getLiveChatId
public String getLiveChatId()
- Returns:
- value or
null
for none
-
setLiveChatId
public LiveChatMessageSnippet setLiveChatId(String liveChatId)
- Parameters:
liveChatId
- liveChatId or null
for none
-
getMemberMilestoneChatDetails
public LiveChatMemberMilestoneChatDetails getMemberMilestoneChatDetails()
Details about the Member Milestone Chat event, this is only set if the type is
'memberMilestoneChatEvent'.
- Returns:
- value or
null
for none
-
setMemberMilestoneChatDetails
public LiveChatMessageSnippet setMemberMilestoneChatDetails(LiveChatMemberMilestoneChatDetails memberMilestoneChatDetails)
Details about the Member Milestone Chat event, this is only set if the type is
'memberMilestoneChatEvent'.
- Parameters:
memberMilestoneChatDetails
- memberMilestoneChatDetails or null
for none
-
getMembershipGiftingDetails
public LiveChatMembershipGiftingDetails getMembershipGiftingDetails()
Details about the Membership Gifting event, this is only set if the type is
'membershipGiftingEvent'.
- Returns:
- value or
null
for none
-
setMembershipGiftingDetails
public LiveChatMessageSnippet setMembershipGiftingDetails(LiveChatMembershipGiftingDetails membershipGiftingDetails)
Details about the Membership Gifting event, this is only set if the type is
'membershipGiftingEvent'.
- Parameters:
membershipGiftingDetails
- membershipGiftingDetails or null
for none
-
getMessageDeletedDetails
public LiveChatMessageDeletedDetails getMessageDeletedDetails()
- Returns:
- value or
null
for none
-
setMessageDeletedDetails
public LiveChatMessageSnippet setMessageDeletedDetails(LiveChatMessageDeletedDetails messageDeletedDetails)
- Parameters:
messageDeletedDetails
- messageDeletedDetails or null
for none
-
getMessageRetractedDetails
public LiveChatMessageRetractedDetails getMessageRetractedDetails()
- Returns:
- value or
null
for none
-
setMessageRetractedDetails
public LiveChatMessageSnippet setMessageRetractedDetails(LiveChatMessageRetractedDetails messageRetractedDetails)
- Parameters:
messageRetractedDetails
- messageRetractedDetails or null
for none
-
getNewSponsorDetails
public LiveChatNewSponsorDetails getNewSponsorDetails()
Details about the New Member Announcement event, this is only set if the type is
'newSponsorEvent'. Please note that "member" is the new term for "sponsor".
- Returns:
- value or
null
for none
-
setNewSponsorDetails
public LiveChatMessageSnippet setNewSponsorDetails(LiveChatNewSponsorDetails newSponsorDetails)
Details about the New Member Announcement event, this is only set if the type is
'newSponsorEvent'. Please note that "member" is the new term for "sponsor".
- Parameters:
newSponsorDetails
- newSponsorDetails or null
for none
-
getPollDetails
public LiveChatPollDetails getPollDetails()
Details about the poll event, this is only set if the type is 'pollEvent'.
- Returns:
- value or
null
for none
-
setPollDetails
public LiveChatMessageSnippet setPollDetails(LiveChatPollDetails pollDetails)
Details about the poll event, this is only set if the type is 'pollEvent'.
- Parameters:
pollDetails
- pollDetails or null
for none
-
getPublishedAt
public com.google.api.client.util.DateTime getPublishedAt()
The date and time when the message was orignally published.
- Returns:
- value or
null
for none
-
setPublishedAt
public LiveChatMessageSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time when the message was orignally published.
- Parameters:
publishedAt
- publishedAt or null
for none
-
getSuperChatDetails
public LiveChatSuperChatDetails getSuperChatDetails()
Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
- Returns:
- value or
null
for none
-
setSuperChatDetails
public LiveChatMessageSnippet setSuperChatDetails(LiveChatSuperChatDetails superChatDetails)
Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
- Parameters:
superChatDetails
- superChatDetails or null
for none
-
getSuperStickerDetails
public LiveChatSuperStickerDetails getSuperStickerDetails()
Details about the Super Sticker event, this is only set if the type is 'superStickerEvent'.
- Returns:
- value or
null
for none
-
setSuperStickerDetails
public LiveChatMessageSnippet setSuperStickerDetails(LiveChatSuperStickerDetails superStickerDetails)
Details about the Super Sticker event, this is only set if the type is 'superStickerEvent'.
- Parameters:
superStickerDetails
- superStickerDetails or null
for none
-
getTextMessageDetails
public LiveChatTextMessageDetails getTextMessageDetails()
Details about the text message, this is only set if the type is 'textMessageEvent'.
- Returns:
- value or
null
for none
-
setTextMessageDetails
public LiveChatMessageSnippet setTextMessageDetails(LiveChatTextMessageDetails textMessageDetails)
Details about the text message, this is only set if the type is 'textMessageEvent'.
- Parameters:
textMessageDetails
- textMessageDetails or null
for none
-
getType
public String getType()
The type of message, this will always be present, it determines the contents of the message as
well as which fields will be present.
- Returns:
- value or
null
for none
-
setType
public LiveChatMessageSnippet setType(String 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.
- Parameters:
type
- type or null
for none
-
getUserBannedDetails
public LiveChatUserBannedMessageDetails getUserBannedDetails()
- Returns:
- value or
null
for none
-
setUserBannedDetails
public LiveChatMessageSnippet setUserBannedDetails(LiveChatUserBannedMessageDetails userBannedDetails)
- Parameters:
userBannedDetails
- userBannedDetails or null
for none
-
set
public LiveChatMessageSnippet set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public LiveChatMessageSnippet clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy