Class AnnotateVideoResponse.Builder (2.46.0)

public static final class AnnotateVideoResponse.Builder extends GeneratedMessageV3.Builder<AnnotateVideoResponse.Builder> implements AnnotateVideoResponseOrBuilder

Video annotation response. Included in the response field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.

Protobuf type google.cloud.videointelligence.v1.AnnotateVideoResponse

Static Methods

getDescriptor()

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

Methods

addAllAnnotationResults(Iterable<? extends VideoAnnotationResults> values)

public AnnotateVideoResponse.Builder addAllAnnotationResults(Iterable<? extends VideoAnnotationResults> values)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.VideoAnnotationResults>
Returns
Type Description
AnnotateVideoResponse.Builder

addAnnotationResults(VideoAnnotationResults value)

public AnnotateVideoResponse.Builder addAnnotationResults(VideoAnnotationResults value)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameter
Name Description
value VideoAnnotationResults
Returns
Type Description
AnnotateVideoResponse.Builder

addAnnotationResults(VideoAnnotationResults.Builder builderForValue)

public AnnotateVideoResponse.Builder addAnnotationResults(VideoAnnotationResults.Builder builderForValue)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameter
Name Description
builderForValue VideoAnnotationResults.Builder
Returns
Type Description
AnnotateVideoResponse.Builder

addAnnotationResults(int index, VideoAnnotationResults value)

public AnnotateVideoResponse.Builder addAnnotationResults(int index, VideoAnnotationResults value)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameters
Name Description
index int
value VideoAnnotationResults
Returns
Type Description
AnnotateVideoResponse.Builder

addAnnotationResults(int index, VideoAnnotationResults.Builder builderForValue)

public AnnotateVideoResponse.Builder addAnnotationResults(int index, VideoAnnotationResults.Builder builderForValue)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameters
Name Description
index int
builderForValue VideoAnnotationResults.Builder
Returns
Type Description
AnnotateVideoResponse.Builder

addAnnotationResultsBuilder()

public VideoAnnotationResults.Builder addAnnotationResultsBuilder()

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Returns
Type Description
VideoAnnotationResults.Builder

addAnnotationResultsBuilder(int index)

public VideoAnnotationResults.Builder addAnnotationResultsBuilder(int index)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
VideoAnnotationResults.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnnotateVideoResponse build()
Returns
Type Description
AnnotateVideoResponse

buildPartial()

public AnnotateVideoResponse buildPartial()
Returns
Type Description
AnnotateVideoResponse

clear()

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

clearAnnotationResults()

public AnnotateVideoResponse.Builder clearAnnotationResults()

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Returns
Type Description
AnnotateVideoResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnnotationResults(int index)

public VideoAnnotationResults getAnnotationResults(int index)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
VideoAnnotationResults

getAnnotationResultsBuilder(int index)

public VideoAnnotationResults.Builder getAnnotationResultsBuilder(int index)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
VideoAnnotationResults.Builder

getAnnotationResultsBuilderList()

public List<VideoAnnotationResults.Builder> getAnnotationResultsBuilderList()

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Returns
Type Description
List<Builder>

getAnnotationResultsCount()

public int getAnnotationResultsCount()

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Returns
Type Description
int

getAnnotationResultsList()

public List<VideoAnnotationResults> getAnnotationResultsList()

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Returns
Type Description
List<VideoAnnotationResults>

getAnnotationResultsOrBuilder(int index)

public VideoAnnotationResultsOrBuilder getAnnotationResultsOrBuilder(int index)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
VideoAnnotationResultsOrBuilder

getAnnotationResultsOrBuilderList()

public List<? extends VideoAnnotationResultsOrBuilder> getAnnotationResultsOrBuilderList()

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1.VideoAnnotationResultsOrBuilder>

getDefaultInstanceForType()

public AnnotateVideoResponse getDefaultInstanceForType()
Returns
Type Description
AnnotateVideoResponse

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnnotateVideoResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAnnotationResults(int index)

public AnnotateVideoResponse.Builder removeAnnotationResults(int index)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotateVideoResponse.Builder

setAnnotationResults(int index, VideoAnnotationResults value)

public AnnotateVideoResponse.Builder setAnnotationResults(int index, VideoAnnotationResults value)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameters
Name Description
index int
value VideoAnnotationResults
Returns
Type Description
AnnotateVideoResponse.Builder

setAnnotationResults(int index, VideoAnnotationResults.Builder builderForValue)

public AnnotateVideoResponse.Builder setAnnotationResults(int index, VideoAnnotationResults.Builder builderForValue)

Annotation results for all videos specified in AnnotateVideoRequest.

repeated .google.cloud.videointelligence.v1.VideoAnnotationResults annotation_results = 1;

Parameters
Name Description
index int
builderForValue VideoAnnotationResults.Builder
Returns
Type Description
AnnotateVideoResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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