Class StreamingAnnotateVideoRequest.Builder

  • All Implemented Interfaces:
    StreamingAnnotateVideoRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    StreamingAnnotateVideoRequest

    public static final class StreamingAnnotateVideoRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingAnnotateVideoRequest.Builder>
    implements StreamingAnnotateVideoRequestOrBuilder
     The top-level message sent by the client for the `StreamingAnnotateVideo`
     method. Multiple `StreamingAnnotateVideoRequest` messages are sent.
     The first message must only contain a `StreamingVideoConfig` message.
     All subsequent messages must only contain `input_content` data.
     
    Protobuf type google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
    • 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<StreamingAnnotateVideoRequest.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<StreamingAnnotateVideoRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingAnnotateVideoRequest.Builder>
      • mergeFrom

        public StreamingAnnotateVideoRequest.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<StreamingAnnotateVideoRequest.Builder>
        Throws:
        IOException
      • hasVideoConfig

        public boolean hasVideoConfig()
         Provides information to the annotator, specifing how to process the
         request. The first `AnnotateStreamingVideoRequest` message must only
         contain a `video_config` message.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
        Specified by:
        hasVideoConfig in interface StreamingAnnotateVideoRequestOrBuilder
        Returns:
        Whether the videoConfig field is set.
      • getVideoConfig

        public StreamingVideoConfig getVideoConfig()
         Provides information to the annotator, specifing how to process the
         request. The first `AnnotateStreamingVideoRequest` message must only
         contain a `video_config` message.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
        Specified by:
        getVideoConfig in interface StreamingAnnotateVideoRequestOrBuilder
        Returns:
        The videoConfig.
      • setVideoConfig

        public StreamingAnnotateVideoRequest.Builder setVideoConfig​(StreamingVideoConfig value)
         Provides information to the annotator, specifing how to process the
         request. The first `AnnotateStreamingVideoRequest` message must only
         contain a `video_config` message.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
      • setVideoConfig

        public StreamingAnnotateVideoRequest.Builder setVideoConfig​(StreamingVideoConfig.Builder builderForValue)
         Provides information to the annotator, specifing how to process the
         request. The first `AnnotateStreamingVideoRequest` message must only
         contain a `video_config` message.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
      • mergeVideoConfig

        public StreamingAnnotateVideoRequest.Builder mergeVideoConfig​(StreamingVideoConfig value)
         Provides information to the annotator, specifing how to process the
         request. The first `AnnotateStreamingVideoRequest` message must only
         contain a `video_config` message.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
      • clearVideoConfig

        public StreamingAnnotateVideoRequest.Builder clearVideoConfig()
         Provides information to the annotator, specifing how to process the
         request. The first `AnnotateStreamingVideoRequest` message must only
         contain a `video_config` message.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
      • getVideoConfigBuilder

        public StreamingVideoConfig.Builder getVideoConfigBuilder()
         Provides information to the annotator, specifing how to process the
         request. The first `AnnotateStreamingVideoRequest` message must only
         contain a `video_config` message.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
      • hasInputContent

        public boolean hasInputContent()
         The video data to be annotated. Chunks of video data are sequentially
         sent in `StreamingAnnotateVideoRequest` messages. Except the initial
         `StreamingAnnotateVideoRequest` message containing only
         `video_config`, all subsequent `AnnotateStreamingVideoRequest`
         messages must only contain `input_content` field.
         Note: as with all bytes fields, protobuffers use a pure binary
         representation (not base64).
         
        bytes input_content = 2;
        Specified by:
        hasInputContent in interface StreamingAnnotateVideoRequestOrBuilder
        Returns:
        Whether the inputContent field is set.
      • getInputContent

        public com.google.protobuf.ByteString getInputContent()
         The video data to be annotated. Chunks of video data are sequentially
         sent in `StreamingAnnotateVideoRequest` messages. Except the initial
         `StreamingAnnotateVideoRequest` message containing only
         `video_config`, all subsequent `AnnotateStreamingVideoRequest`
         messages must only contain `input_content` field.
         Note: as with all bytes fields, protobuffers use a pure binary
         representation (not base64).
         
        bytes input_content = 2;
        Specified by:
        getInputContent in interface StreamingAnnotateVideoRequestOrBuilder
        Returns:
        The inputContent.
      • setInputContent

        public StreamingAnnotateVideoRequest.Builder setInputContent​(com.google.protobuf.ByteString value)
         The video data to be annotated. Chunks of video data are sequentially
         sent in `StreamingAnnotateVideoRequest` messages. Except the initial
         `StreamingAnnotateVideoRequest` message containing only
         `video_config`, all subsequent `AnnotateStreamingVideoRequest`
         messages must only contain `input_content` field.
         Note: as with all bytes fields, protobuffers use a pure binary
         representation (not base64).
         
        bytes input_content = 2;
        Parameters:
        value - The inputContent to set.
        Returns:
        This builder for chaining.
      • clearInputContent

        public StreamingAnnotateVideoRequest.Builder clearInputContent()
         The video data to be annotated. Chunks of video data are sequentially
         sent in `StreamingAnnotateVideoRequest` messages. Except the initial
         `StreamingAnnotateVideoRequest` message containing only
         `video_config`, all subsequent `AnnotateStreamingVideoRequest`
         messages must only contain `input_content` field.
         Note: as with all bytes fields, protobuffers use a pure binary
         representation (not base64).
         
        bytes input_content = 2;
        Returns:
        This builder for chaining.