Class StreamingAnnotateVideoRequest.Builder (2.43.0)

public static final class StreamingAnnotateVideoRequest.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingAnnotateVideoRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

build()

public StreamingAnnotateVideoRequest build()
Returns
Type Description
StreamingAnnotateVideoRequest

buildPartial()

public StreamingAnnotateVideoRequest buildPartial()
Returns
Type Description
StreamingAnnotateVideoRequest

clear()

public StreamingAnnotateVideoRequest.Builder clear()
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StreamingAnnotateVideoRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

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
Type Description
StreamingAnnotateVideoRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingAnnotateVideoRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

clearStreamingRequest()

public StreamingAnnotateVideoRequest.Builder clearStreamingRequest()
Returns
Type Description
StreamingAnnotateVideoRequest.Builder

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;

Returns
Type Description
StreamingAnnotateVideoRequest.Builder

clone()

public StreamingAnnotateVideoRequest.Builder clone()
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

getDefaultInstanceForType()

public StreamingAnnotateVideoRequest getDefaultInstanceForType()
Returns
Type Description
StreamingAnnotateVideoRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInputContent()

public 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;

Returns
Type Description
ByteString

The inputContent.

getStreamingRequestCase()

public StreamingAnnotateVideoRequest.StreamingRequestCase getStreamingRequestCase()
Returns
Type Description
StreamingAnnotateVideoRequest.StreamingRequestCase

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;

Returns
Type Description
StreamingVideoConfig

The videoConfig.

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;

Returns
Type Description
StreamingVideoConfig.Builder

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;

Returns
Type Description
StreamingVideoConfigOrBuilder

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;

Returns
Type Description
boolean

Whether the inputContent field is set.

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;

Returns
Type Description
boolean

Whether the videoConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamingAnnotateVideoRequest other)

public StreamingAnnotateVideoRequest.Builder mergeFrom(StreamingAnnotateVideoRequest other)
Parameter
Name Description
other StreamingAnnotateVideoRequest
Returns
Type Description
StreamingAnnotateVideoRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingAnnotateVideoRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamingAnnotateVideoRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingAnnotateVideoRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

mergeVideoConfig(StreamingVideoConfig value)

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;

Parameter
Name Description
value StreamingVideoConfig
Returns
Type Description
StreamingAnnotateVideoRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingAnnotateVideoRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

setInputContent(ByteString value)

public StreamingAnnotateVideoRequest.Builder setInputContent(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;

Parameter
Name Description
value ByteString

The inputContent to set.

Returns
Type Description
StreamingAnnotateVideoRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StreamingAnnotateVideoRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingAnnotateVideoRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingAnnotateVideoRequest.Builder
Overrides

setVideoConfig(StreamingVideoConfig value)

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;

Parameter
Name Description
value StreamingVideoConfig
Returns
Type Description
StreamingAnnotateVideoRequest.Builder

setVideoConfig(StreamingVideoConfig.Builder builderForValue)

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;

Parameter
Name Description
builderForValue StreamingVideoConfig.Builder
Returns
Type Description
StreamingAnnotateVideoRequest.Builder