Class StreamingAnnotateVideoRequest.Builder (2.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingAnnotateVideoRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder
Overrides

build()

public StreamingAnnotateVideoRequest build()
Returns
TypeDescription
StreamingAnnotateVideoRequest

buildPartial()

public StreamingAnnotateVideoRequest buildPartial()
Returns
TypeDescription
StreamingAnnotateVideoRequest

clear()

public StreamingAnnotateVideoRequest.Builder clear()
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StreamingAnnotateVideoRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
StreamingAnnotateVideoRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingAnnotateVideoRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder
Overrides

clearStreamingRequest()

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

clone()

public StreamingAnnotateVideoRequest.Builder clone()
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder
Overrides

getDefaultInstanceForType()

public StreamingAnnotateVideoRequest getDefaultInstanceForType()
Returns
TypeDescription
StreamingAnnotateVideoRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
ByteString

The inputContent.

getStreamingRequestCase()

public StreamingAnnotateVideoRequest.StreamingRequestCase getStreamingRequestCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the videoConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StreamingAnnotateVideoRequest other)

public StreamingAnnotateVideoRequest.Builder mergeFrom(StreamingAnnotateVideoRequest other)
Parameter
NameDescription
otherStreamingAnnotateVideoRequest
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingAnnotateVideoRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StreamingAnnotateVideoRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingAnnotateVideoRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueStreamingVideoConfig
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingAnnotateVideoRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueByteString

The inputContent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingAnnotateVideoRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueStreamingVideoConfig
Returns
TypeDescription
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
NameDescription
builderForValueStreamingVideoConfig.Builder
Returns
TypeDescription
StreamingAnnotateVideoRequest.Builder