Class FaceSegment.Builder (2.82.0)

public static final class FaceSegment.Builder extends GeneratedMessage.Builder<FaceSegment.Builder> implements FaceSegmentOrBuilder

Video segment level annotation results for face detection.

Protobuf type google.cloud.videointelligence.v1beta2.FaceSegment

Static Methods

getDescriptor()

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

Methods

build()

public FaceSegment build()
Returns
Type Description
FaceSegment

buildPartial()

public FaceSegment buildPartial()
Returns
Type Description
FaceSegment

clear()

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

clearSegment()

public FaceSegment.Builder clearSegment()

Video segment where a face was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
Type Description
FaceSegment.Builder

getDefaultInstanceForType()

public FaceSegment getDefaultInstanceForType()
Returns
Type Description
FaceSegment

getDescriptorForType()

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

getSegment()

public VideoSegment getSegment()

Video segment where a face was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
Type Description
VideoSegment

The segment.

getSegmentBuilder()

public VideoSegment.Builder getSegmentBuilder()

Video segment where a face was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
Type Description
VideoSegment.Builder

getSegmentOrBuilder()

public VideoSegmentOrBuilder getSegmentOrBuilder()

Video segment where a face was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
Type Description
VideoSegmentOrBuilder

hasSegment()

public boolean hasSegment()

Video segment where a face was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
Type Description
boolean

Whether the segment field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FaceSegment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSegment(VideoSegment value)

public FaceSegment.Builder mergeSegment(VideoSegment value)

Video segment where a face was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Parameter
Name Description
value VideoSegment
Returns
Type Description
FaceSegment.Builder

setSegment(VideoSegment value)

public FaceSegment.Builder setSegment(VideoSegment value)

Video segment where a face was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Parameter
Name Description
value VideoSegment
Returns
Type Description
FaceSegment.Builder

setSegment(VideoSegment.Builder builderForValue)

public FaceSegment.Builder setSegment(VideoSegment.Builder builderForValue)

Video segment where a face was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Parameter
Name Description
builderForValue VideoSegment.Builder
Returns
Type Description
FaceSegment.Builder