target.apidocs.com.google.api.services.youtube.model.VideoFileDetails.html Maven / Gradle / Ivy
VideoFileDetails (YouTube Data API v3 v3-rev20240417-2.0.0)
com.google.api.services.youtube.model
Class VideoFileDetails
- 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.VideoFileDetails
-
public final class VideoFileDetails
extends com.google.api.client.json.GenericJson
Describes original video file properties, including technical details about audio and video
streams, but also metadata information like content length, digitization time, or geotagging
information.
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
VideoFileDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
VideoFileDetails
clone()
List<VideoFileDetailsAudioStream>
getAudioStreams()
A list of audio streams contained in the uploaded video file.
BigInteger
getBitrateBps()
The uploaded video file's combined (video and audio) bitrate in bits per second.
String
getContainer()
The uploaded video file's container format.
String
getCreationTime()
The date and time when the uploaded video file was created.
BigInteger
getDurationMs()
The length of the uploaded video in milliseconds.
String
getFileName()
The uploaded file's name.
BigInteger
getFileSize()
The uploaded file's size in bytes.
String
getFileType()
The uploaded file's type as detected by YouTube's video processing engine.
List<VideoFileDetailsVideoStream>
getVideoStreams()
A list of video streams contained in the uploaded video file.
VideoFileDetails
set(String fieldName,
Object value)
VideoFileDetails
setAudioStreams(List<VideoFileDetailsAudioStream> audioStreams)
A list of audio streams contained in the uploaded video file.
VideoFileDetails
setBitrateBps(BigInteger bitrateBps)
The uploaded video file's combined (video and audio) bitrate in bits per second.
VideoFileDetails
setContainer(String container)
The uploaded video file's container format.
VideoFileDetails
setCreationTime(String creationTime)
The date and time when the uploaded video file was created.
VideoFileDetails
setDurationMs(BigInteger durationMs)
The length of the uploaded video in milliseconds.
VideoFileDetails
setFileName(String fileName)
The uploaded file's name.
VideoFileDetails
setFileSize(BigInteger fileSize)
The uploaded file's size in bytes.
VideoFileDetails
setFileType(String fileType)
The uploaded file's type as detected by YouTube's video processing engine.
VideoFileDetails
setVideoStreams(List<VideoFileDetailsVideoStream> videoStreams)
A list of video streams contained in the uploaded video file.
-
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
-
getAudioStreams
public List<VideoFileDetailsAudioStream> getAudioStreams()
A list of audio streams contained in the uploaded video file. Each item in the list contains
detailed metadata about an audio stream.
- Returns:
- value or
null
for none
-
setAudioStreams
public VideoFileDetails setAudioStreams(List<VideoFileDetailsAudioStream> audioStreams)
A list of audio streams contained in the uploaded video file. Each item in the list contains
detailed metadata about an audio stream.
- Parameters:
audioStreams
- audioStreams or null
for none
-
getBitrateBps
public BigInteger getBitrateBps()
The uploaded video file's combined (video and audio) bitrate in bits per second.
- Returns:
- value or
null
for none
-
setBitrateBps
public VideoFileDetails setBitrateBps(BigInteger bitrateBps)
The uploaded video file's combined (video and audio) bitrate in bits per second.
- Parameters:
bitrateBps
- bitrateBps or null
for none
-
getContainer
public String getContainer()
The uploaded video file's container format.
- Returns:
- value or
null
for none
-
setContainer
public VideoFileDetails setContainer(String container)
The uploaded video file's container format.
- Parameters:
container
- container or null
for none
-
getCreationTime
public String getCreationTime()
The date and time when the uploaded video file was created. The value is specified in ISO 8601
format. Currently, the following ISO 8601 formats are supported: - Date only: YYYY-MM-DD -
Naive time: YYYY-MM-DDTHH:MM:SS - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM
- Returns:
- value or
null
for none
-
setCreationTime
public VideoFileDetails setCreationTime(String creationTime)
The date and time when the uploaded video file was created. The value is specified in ISO 8601
format. Currently, the following ISO 8601 formats are supported: - Date only: YYYY-MM-DD -
Naive time: YYYY-MM-DDTHH:MM:SS - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM
- Parameters:
creationTime
- creationTime or null
for none
-
getDurationMs
public BigInteger getDurationMs()
The length of the uploaded video in milliseconds.
- Returns:
- value or
null
for none
-
setDurationMs
public VideoFileDetails setDurationMs(BigInteger durationMs)
The length of the uploaded video in milliseconds.
- Parameters:
durationMs
- durationMs or null
for none
-
getFileName
public String getFileName()
The uploaded file's name. This field is present whether a video file or another type of file
was uploaded.
- Returns:
- value or
null
for none
-
setFileName
public VideoFileDetails setFileName(String fileName)
The uploaded file's name. This field is present whether a video file or another type of file
was uploaded.
- Parameters:
fileName
- fileName or null
for none
-
getFileSize
public BigInteger getFileSize()
The uploaded file's size in bytes. This field is present whether a video file or another type
of file was uploaded.
- Returns:
- value or
null
for none
-
setFileSize
public VideoFileDetails setFileSize(BigInteger fileSize)
The uploaded file's size in bytes. This field is present whether a video file or another type
of file was uploaded.
- Parameters:
fileSize
- fileSize or null
for none
-
getFileType
public String getFileType()
The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube
only processes video files, but this field is present whether a video file or another type of
file was uploaded.
- Returns:
- value or
null
for none
-
setFileType
public VideoFileDetails setFileType(String fileType)
The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube
only processes video files, but this field is present whether a video file or another type of
file was uploaded.
- Parameters:
fileType
- fileType or null
for none
-
getVideoStreams
public List<VideoFileDetailsVideoStream> getVideoStreams()
A list of video streams contained in the uploaded video file. Each item in the list contains
detailed metadata about a video stream.
- Returns:
- value or
null
for none
-
setVideoStreams
public VideoFileDetails setVideoStreams(List<VideoFileDetailsVideoStream> videoStreams)
A list of video streams contained in the uploaded video file. Each item in the list contains
detailed metadata about a video stream.
- Parameters:
videoStreams
- videoStreams or null
for none
-
set
public VideoFileDetails set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public VideoFileDetails 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