Send feedback
Class VideoThumbnail.Builder (0.165.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.165.0 keyboard_arrow_down
public static final class VideoThumbnail . Builder extends GeneratedMessageV3 . Builder<VideoThumbnail . Builder > implements VideoThumbnailOrBuilder
Container of information of a video thumbnail.
Protobuf type google.cloud.datalabeling.v1beta1.VideoThumbnail
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VideoThumbnail . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public VideoThumbnail build ()
buildPartial()
public VideoThumbnail buildPartial ()
clear()
public VideoThumbnail . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public VideoThumbnail . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public VideoThumbnail . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearThumbnail()
public VideoThumbnail . Builder clearThumbnail ()
A byte string of the video frame.
bytes thumbnail = 1;
clearTimeOffset()
public VideoThumbnail . Builder clearTimeOffset ()
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;
clone()
public VideoThumbnail . Builder clone ()
Overrides
getDefaultInstanceForType()
public VideoThumbnail getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getThumbnail()
public ByteString getThumbnail ()
A byte string of the video frame.
bytes thumbnail = 1;
Returns
Type
Description
ByteString
The thumbnail.
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
Type
Description
Duration
The timeOffset.
getTimeOffsetBuilder()
public Duration . Builder getTimeOffsetBuilder ()
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;
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;
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.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(VideoThumbnail other)
public VideoThumbnail . Builder mergeFrom ( VideoThumbnail other )
public VideoThumbnail . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public VideoThumbnail . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeTimeOffset(Duration value)
public VideoThumbnail . Builder mergeTimeOffset ( Duration value )
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;
Parameter
Name
Description
value
Duration
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VideoThumbnail . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public VideoThumbnail . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VideoThumbnail . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setThumbnail(ByteString value)
public VideoThumbnail . Builder setThumbnail ( ByteString value )
A byte string of the video frame.
bytes thumbnail = 1;
Parameter
Name
Description
value
ByteString
The thumbnail to set.
setTimeOffset(Duration value)
public VideoThumbnail . Builder setTimeOffset ( Duration value )
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;
Parameter
Name
Description
value
Duration
setTimeOffset(Duration.Builder builderForValue)
public VideoThumbnail . Builder setTimeOffset ( Duration . Builder builderForValue )
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;
Parameter
Name
Description
builderForValue
Builder
setUnknownFields(UnknownFieldSet unknownFields)
public final VideoThumbnail . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]