Class StreamingAnnotateVideoRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamingAnnotateVideoRequest.Builder>
com.google.cloud.videointelligence.v1p3beta1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StreamingAnnotateVideoRequest.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.GeneratedMessage.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.GeneratedMessage.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

      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
    • mergeFrom

      public StreamingAnnotateVideoRequest.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<StreamingAnnotateVideoRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getStreamingRequestCase

      public StreamingAnnotateVideoRequest.StreamingRequestCase getStreamingRequestCase()
      Specified by:
      getStreamingRequestCase in interface StreamingAnnotateVideoRequestOrBuilder
    • clearStreamingRequest

      public StreamingAnnotateVideoRequest.Builder clearStreamingRequest()
    • 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

       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

       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

       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;
    • getVideoConfigOrBuilder

      public StreamingVideoConfigOrBuilder getVideoConfigOrBuilder()
       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:
      getVideoConfigOrBuilder in interface StreamingAnnotateVideoRequestOrBuilder
    • 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.