Class VideoPayload (0.155.0)

public final class VideoPayload extends GeneratedMessageV3 implements VideoPayloadOrBuilder

Container of information of a video.

Protobuf type google.cloud.datalabeling.v1beta1.VideoPayload

Static Fields

FRAME_RATE_FIELD_NUMBER

public static final int FRAME_RATE_FIELD_NUMBER
Field Value
TypeDescription
int

MIME_TYPE_FIELD_NUMBER

public static final int MIME_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

SIGNED_URI_FIELD_NUMBER

public static final int SIGNED_URI_FIELD_NUMBER
Field Value
TypeDescription
int

VIDEO_THUMBNAILS_FIELD_NUMBER

public static final int VIDEO_THUMBNAILS_FIELD_NUMBER
Field Value
TypeDescription
int

VIDEO_URI_FIELD_NUMBER

public static final int VIDEO_URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VideoPayload getDefaultInstance()
Returns
TypeDescription
VideoPayload

getDescriptor()

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

newBuilder()

public static VideoPayload.Builder newBuilder()
Returns
TypeDescription
VideoPayload.Builder

newBuilder(VideoPayload prototype)

public static VideoPayload.Builder newBuilder(VideoPayload prototype)
Parameter
NameDescription
prototypeVideoPayload
Returns
TypeDescription
VideoPayload.Builder

parseDelimitedFrom(InputStream input)

public static VideoPayload parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VideoPayload
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static VideoPayload parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VideoPayload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static VideoPayload parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VideoPayload
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static VideoPayload parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VideoPayload
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static VideoPayload parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VideoPayload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<VideoPayload> parser()
Returns
TypeDescription
Parser<VideoPayload>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public VideoPayload getDefaultInstanceForType()
Returns
TypeDescription
VideoPayload

getFrameRate()

public float getFrameRate()

FPS of the video.

float frame_rate = 4;

Returns
TypeDescription
float

The frameRate.

getMimeType()

public String getMimeType()

Video format.

string mime_type = 1;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Video format.

string mime_type = 1;

Returns
TypeDescription
ByteString

The bytes for mimeType.

getParserForType()

public Parser<VideoPayload> getParserForType()
Returns
TypeDescription
Parser<VideoPayload>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSignedUri()

public String getSignedUri()

Signed uri of the video file in the service bucket.

string signed_uri = 5;

Returns
TypeDescription
String

The signedUri.

getSignedUriBytes()

public ByteString getSignedUriBytes()

Signed uri of the video file in the service bucket.

string signed_uri = 5;

Returns
TypeDescription
ByteString

The bytes for signedUri.

getVideoThumbnails(int index)

public VideoThumbnail getVideoThumbnails(int index)

The list of video thumbnails.

repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoThumbnail

getVideoThumbnailsCount()

public int getVideoThumbnailsCount()

The list of video thumbnails.

repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;

Returns
TypeDescription
int

getVideoThumbnailsList()

public List<VideoThumbnail> getVideoThumbnailsList()

The list of video thumbnails.

repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;

Returns
TypeDescription
List<VideoThumbnail>

getVideoThumbnailsOrBuilder(int index)

public VideoThumbnailOrBuilder getVideoThumbnailsOrBuilder(int index)

The list of video thumbnails.

repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoThumbnailOrBuilder

getVideoThumbnailsOrBuilderList()

public List<? extends VideoThumbnailOrBuilder> getVideoThumbnailsOrBuilderList()

The list of video thumbnails.

repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;

Returns
TypeDescription
List<? extends com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>

getVideoUri()

public String getVideoUri()

Video uri from the user bucket.

string video_uri = 2;

Returns
TypeDescription
String

The videoUri.

getVideoUriBytes()

public ByteString getVideoUriBytes()

Video uri from the user bucket.

string video_uri = 2;

Returns
TypeDescription
ByteString

The bytes for videoUri.

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 VideoPayload.Builder newBuilderForType()
Returns
TypeDescription
VideoPayload.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public VideoPayload.Builder toBuilder()
Returns
TypeDescription
VideoPayload.Builder

writeTo(CodedOutputStream output)

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