public final class VideoThumbnail extends GeneratedMessageV3 implements VideoThumbnailOrBuilder
Container of information of a video thumbnail.
Protobuf type google.cloud.datalabeling.v1beta1.VideoThumbnail
Static Fields
THUMBNAIL_FIELD_NUMBER
public static final int THUMBNAIL_FIELD_NUMBER
Field Value
TIME_OFFSET_FIELD_NUMBER
public static final int TIME_OFFSET_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static VideoThumbnail getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static VideoThumbnail.Builder newBuilder()
Returns
newBuilder(VideoThumbnail prototype)
public static VideoThumbnail.Builder newBuilder(VideoThumbnail prototype)
Parameter
Returns
public static VideoThumbnail parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static VideoThumbnail parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static VideoThumbnail parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static VideoThumbnail parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static VideoThumbnail parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VideoThumbnail parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static VideoThumbnail parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static VideoThumbnail parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static VideoThumbnail parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static VideoThumbnail parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static VideoThumbnail parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static VideoThumbnail parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<VideoThumbnail> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public VideoThumbnail getDefaultInstanceForType()
Returns
getParserForType()
public Parser<VideoThumbnail> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getThumbnail()
public ByteString getThumbnail()
A byte string of the video frame.
bytes thumbnail = 1;
Returns
getTimeOffset()
public Duration getTimeOffset()
Time offset relative to the beginning of the video, corresponding to the
video frame where the thumbnail has been extracted from.
.google.protobuf.Duration time_offset = 2;
Returns
getTimeOffsetOrBuilder()
public DurationOrBuilder getTimeOffsetOrBuilder()
Time offset relative to the beginning of the video, corresponding to the
video frame where the thumbnail has been extracted from.
.google.protobuf.Duration time_offset = 2;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasTimeOffset()
public boolean hasTimeOffset()
Time offset relative to the beginning of the video, corresponding to the
video frame where the thumbnail has been extracted from.
.google.protobuf.Duration time_offset = 2;
Returns
Type | Description |
boolean | Whether the timeOffset field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public VideoThumbnail.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected VideoThumbnail.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public VideoThumbnail.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions