Class 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 type google.cloud.datalabeling.v1beta1.VideoThumbnail
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • clear

        public VideoThumbnail.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • getDefaultInstanceForType

        public VideoThumbnail getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public VideoThumbnail build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public VideoThumbnail buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public VideoThumbnail.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • setField

        public VideoThumbnail.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • clearField

        public VideoThumbnail.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • clearOneof

        public VideoThumbnail.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • setRepeatedField

        public VideoThumbnail.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • addRepeatedField

        public VideoThumbnail.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • mergeFrom

        public VideoThumbnail.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VideoThumbnail.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getThumbnail in interface VideoThumbnailOrBuilder
        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:
        hasTimeOffset in interface VideoThumbnailOrBuilder
        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:
        getTimeOffset in interface VideoThumbnailOrBuilder
        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:
        getTimeOffsetOrBuilder in interface VideoThumbnailOrBuilder
      • setUnknownFields

        public final VideoThumbnail.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>
      • mergeUnknownFields

        public final VideoThumbnail.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VideoThumbnail.Builder>