Class VideoThumbnail.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
- com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder
-
- All Implemented Interfaces:
VideoThumbnailOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VideoThumbnail
public static final class VideoThumbnail.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder> implements VideoThumbnailOrBuilder
Container of information of a video thumbnail.
Protobuf typegoogle.cloud.datalabeling.v1beta1.VideoThumbnail
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoThumbnail.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VideoThumbnailbuild()VideoThumbnailbuildPartial()VideoThumbnail.Builderclear()VideoThumbnail.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VideoThumbnail.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VideoThumbnail.BuilderclearThumbnail()A byte string of the video frame.VideoThumbnail.BuilderclearTimeOffset()Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.VideoThumbnail.Builderclone()VideoThumbnailgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetThumbnail()A byte string of the video frame.com.google.protobuf.DurationgetTimeOffset()Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.com.google.protobuf.Duration.BuildergetTimeOffsetBuilder()Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.com.google.protobuf.DurationOrBuildergetTimeOffsetOrBuilder()Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.booleanhasTimeOffset()Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VideoThumbnail.BuildermergeFrom(VideoThumbnail other)VideoThumbnail.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VideoThumbnail.BuildermergeFrom(com.google.protobuf.Message other)VideoThumbnail.BuildermergeTimeOffset(com.google.protobuf.Duration value)Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.VideoThumbnail.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VideoThumbnail.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VideoThumbnail.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VideoThumbnail.BuildersetThumbnail(com.google.protobuf.ByteString value)A byte string of the video frame.VideoThumbnail.BuildersetTimeOffset(com.google.protobuf.Duration value)Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.VideoThumbnail.BuildersetTimeOffset(com.google.protobuf.Duration.Builder builderForValue)Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.VideoThumbnail.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
clear
public VideoThumbnail.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
getDefaultInstanceForType
public VideoThumbnail getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VideoThumbnail build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VideoThumbnail buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VideoThumbnail.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
setField
public VideoThumbnail.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
clearField
public VideoThumbnail.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
clearOneof
public VideoThumbnail.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
setRepeatedField
public VideoThumbnail.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
addRepeatedField
public VideoThumbnail.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
mergeFrom
public VideoThumbnail.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoThumbnail.Builder>
-
mergeFrom
public VideoThumbnail.Builder mergeFrom(VideoThumbnail other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
mergeFrom
public VideoThumbnail.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoThumbnail.Builder>- Throws:
IOException
-
getThumbnail
public com.google.protobuf.ByteString getThumbnail()
A byte string of the video frame.
bytes thumbnail = 1;- Specified by:
getThumbnailin interfaceVideoThumbnailOrBuilder- Returns:
- The thumbnail.
-
setThumbnail
public VideoThumbnail.Builder setThumbnail(com.google.protobuf.ByteString value)
A byte string of the video frame.
bytes thumbnail = 1;- Parameters:
value- The thumbnail to set.- Returns:
- This builder for chaining.
-
clearThumbnail
public VideoThumbnail.Builder clearThumbnail()
A byte string of the video frame.
bytes thumbnail = 1;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasTimeOffsetin interfaceVideoThumbnailOrBuilder- Returns:
- Whether the timeOffset field is set.
-
getTimeOffset
public com.google.protobuf.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;- Specified by:
getTimeOffsetin interfaceVideoThumbnailOrBuilder- Returns:
- The timeOffset.
-
setTimeOffset
public VideoThumbnail.Builder setTimeOffset(com.google.protobuf.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;
-
setTimeOffset
public VideoThumbnail.Builder setTimeOffset(com.google.protobuf.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;
-
mergeTimeOffset
public VideoThumbnail.Builder mergeTimeOffset(com.google.protobuf.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;
-
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;
-
getTimeOffsetBuilder
public com.google.protobuf.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 com.google.protobuf.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;- Specified by:
getTimeOffsetOrBuilderin interfaceVideoThumbnailOrBuilder
-
setUnknownFields
public final VideoThumbnail.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
mergeUnknownFields
public final VideoThumbnail.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
-
-