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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StreamingAnnotateVideoRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StreamingAnnotateVideoRequest build()
Returns
buildPartial()
public StreamingAnnotateVideoRequest buildPartial()
Returns
clear()
public StreamingAnnotateVideoRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public StreamingAnnotateVideoRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public StreamingAnnotateVideoRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearStreamingRequest()
public StreamingAnnotateVideoRequest.Builder clearStreamingRequest()
Returns
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
clone()
public StreamingAnnotateVideoRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public StreamingAnnotateVideoRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
getStreamingRequestCase()
public StreamingAnnotateVideoRequest.StreamingRequestCase getStreamingRequestCase()
Returns
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(StreamingAnnotateVideoRequest other)
public StreamingAnnotateVideoRequest.Builder mergeFrom(StreamingAnnotateVideoRequest other)
Parameter
Returns
public StreamingAnnotateVideoRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StreamingAnnotateVideoRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StreamingAnnotateVideoRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StreamingAnnotateVideoRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StreamingAnnotateVideoRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StreamingAnnotateVideoRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns