Class Asset.VideoAsset (0.29.0)

public static final class Asset.VideoAsset extends GeneratedMessageV3 implements Asset.VideoAssetOrBuilder

VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and FLV. The supported video codec is H264. The supported audio codecs are AAC, AC3, MP2, and MP3.

Protobuf type google.cloud.video.livestream.v1.Asset.VideoAsset

Static Fields

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Asset.VideoAsset getDefaultInstance()
Returns
TypeDescription
Asset.VideoAsset

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Asset.VideoAsset.Builder newBuilder()
Returns
TypeDescription
Asset.VideoAsset.Builder

newBuilder(Asset.VideoAsset prototype)

public static Asset.VideoAsset.Builder newBuilder(Asset.VideoAsset prototype)
Parameter
NameDescription
prototypeAsset.VideoAsset
Returns
TypeDescription
Asset.VideoAsset.Builder

parseDelimitedFrom(InputStream input)

public static Asset.VideoAsset parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Asset.VideoAsset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Asset.VideoAsset parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Asset.VideoAsset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Asset.VideoAsset parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Asset.VideoAsset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Asset.VideoAsset parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Asset.VideoAsset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Asset.VideoAsset parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Asset.VideoAsset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Asset.VideoAsset parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Asset.VideoAsset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.VideoAsset
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Asset.VideoAsset> parser()
Returns
TypeDescription
Parser<VideoAsset>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Asset.VideoAsset getDefaultInstanceForType()
Returns
TypeDescription
Asset.VideoAsset

getParserForType()

public Parser<Asset.VideoAsset> getParserForType()
Returns
TypeDescription
Parser<VideoAsset>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUri()

public String getUri()

Cloud Storage URI of the video. The format is gs://my-bucket/my-object.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Cloud Storage URI of the video. The format is gs://my-bucket/my-object.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Asset.VideoAsset.Builder newBuilderForType()
Returns
TypeDescription
Asset.VideoAsset.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Asset.VideoAsset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Asset.VideoAsset.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Asset.VideoAsset.Builder toBuilder()
Returns
TypeDescription
Asset.VideoAsset.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException