target.apidocs.com.google.api.services.youtube.model.ResourceId.html Maven / Gradle / Ivy
ResourceId (YouTube Data API v3 v3-rev20240909-2.0.0)
com.google.api.services.youtube.model
Class ResourceId
- 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.ResourceId
-
public final class ResourceId
extends com.google.api.client.json.GenericJson
A resource id is a generic reference that points to another YouTube resource.
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
ResourceId()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ResourceId
clone()
String
getChannelId()
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
channel.
String
getKind()
The type of the API resource.
String
getPlaylistId()
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
playlist.
String
getVideoId()
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
video.
ResourceId
set(String fieldName,
Object value)
ResourceId
setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
channel.
ResourceId
setKind(String kind)
The type of the API resource.
ResourceId
setPlaylistId(String playlistId)
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
playlist.
ResourceId
setVideoId(String videoId)
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
video.
-
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
-
getChannelId
public String getChannelId()
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
channel. This property is only present if the resourceId.kind value is youtube#channel.
- Returns:
- value or
null
for none
-
setChannelId
public ResourceId setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
channel. This property is only present if the resourceId.kind value is youtube#channel.
- Parameters:
channelId
- channelId or null
for none
-
getKind
public String getKind()
The type of the API resource.
- Returns:
- value or
null
for none
-
setKind
public ResourceId setKind(String kind)
The type of the API resource.
- Parameters:
kind
- kind or null
for none
-
getPlaylistId
public String getPlaylistId()
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- Returns:
- value or
null
for none
-
setPlaylistId
public ResourceId setPlaylistId(String playlistId)
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- Parameters:
playlistId
- playlistId or null
for none
-
getVideoId
public String getVideoId()
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
video. This property is only present if the resourceId.kind value is youtube#video.
- Returns:
- value or
null
for none
-
setVideoId
public ResourceId setVideoId(String videoId)
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a
video. This property is only present if the resourceId.kind value is youtube#video.
- Parameters:
videoId
- videoId or null
for none
-
set
public ResourceId set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ResourceId 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