Class FaceSegment.Builder (2.36.0)

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

Video segment level annotation results for face detection.

Protobuf type google.cloud.videointelligence.v1.FaceSegment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FaceSegment build()
Returns
TypeDescription
FaceSegment

buildPartial()

public FaceSegment buildPartial()
Returns
TypeDescription
FaceSegment

clear()

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

clearField(Descriptors.FieldDescriptor field)

public FaceSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FaceSegment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSegment()

public FaceSegment.Builder clearSegment()

Video segment where a face was detected.

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

Returns
TypeDescription
FaceSegment.Builder

clone()

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

getDefaultInstanceForType()

public FaceSegment getDefaultInstanceForType()
Returns
TypeDescription
FaceSegment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSegment()

public VideoSegment getSegment()

Video segment where a face was detected.

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

Returns
TypeDescription
VideoSegment

The segment.

getSegmentBuilder()

public VideoSegment.Builder getSegmentBuilder()

Video segment where a face was detected.

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

Returns
TypeDescription
VideoSegment.Builder

getSegmentOrBuilder()

public VideoSegmentOrBuilder getSegmentOrBuilder()

Video segment where a face was detected.

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

Returns
TypeDescription
VideoSegmentOrBuilder

hasSegment()

public boolean hasSegment()

Video segment where a face was detected.

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

Returns
TypeDescription
boolean

Whether the segment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FaceSegment other)

public FaceSegment.Builder mergeFrom(FaceSegment other)
Parameter
NameDescription
otherFaceSegment
Returns
TypeDescription
FaceSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSegment(VideoSegment value)

public FaceSegment.Builder mergeSegment(VideoSegment value)

Video segment where a face was detected.

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

Parameter
NameDescription
valueVideoSegment
Returns
TypeDescription
FaceSegment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FaceSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FaceSegment.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public FaceSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FaceSegment.Builder
Overrides

setSegment(VideoSegment value)

public FaceSegment.Builder setSegment(VideoSegment value)

Video segment where a face was detected.

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

Parameter
NameDescription
valueVideoSegment
Returns
TypeDescription
FaceSegment.Builder

setSegment(VideoSegment.Builder builderForValue)

public FaceSegment.Builder setSegment(VideoSegment.Builder builderForValue)

Video segment where a face was detected.

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

Parameter
NameDescription
builderForValueVideoSegment.Builder
Returns
TypeDescription
FaceSegment.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final FaceSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FaceSegment.Builder
Overrides