Class FaceSegment (2.14.0)

public final class FaceSegment extends GeneratedMessageV3 implements FaceSegmentOrBuilder

Video segment level annotation results for face detection.

Protobuf type google.cloud.videointelligence.v1beta2.FaceSegment

Static Fields

SEGMENT_FIELD_NUMBER

public static final int SEGMENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FaceSegment getDefaultInstance()
Returns
TypeDescription
FaceSegment

getDescriptor()

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

newBuilder()

public static FaceSegment.Builder newBuilder()
Returns
TypeDescription
FaceSegment.Builder

newBuilder(FaceSegment prototype)

public static FaceSegment.Builder newBuilder(FaceSegment prototype)
Parameter
NameDescription
prototypeFaceSegment
Returns
TypeDescription
FaceSegment.Builder

parseDelimitedFrom(InputStream input)

public static FaceSegment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceSegment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FaceSegment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FaceSegment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FaceSegment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FaceSegment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FaceSegment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceSegment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FaceSegment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceSegment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FaceSegment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FaceSegment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FaceSegment> parser()
Returns
TypeDescription
Parser<FaceSegment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FaceSegment getDefaultInstanceForType()
Returns
TypeDescription
FaceSegment

getParserForType()

public Parser<FaceSegment> getParserForType()
Returns
TypeDescription
Parser<FaceSegment>
Overrides

getSegment()

public VideoSegment getSegment()

Video segment where a face was detected.

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

Returns
TypeDescription
VideoSegment

The segment.

getSegmentOrBuilder()

public VideoSegmentOrBuilder getSegmentOrBuilder()

Video segment where a face was detected.

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

Returns
TypeDescription
VideoSegmentOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSegment()

public boolean hasSegment()

Video segment where a face was detected.

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

Returns
TypeDescription
boolean

Whether the segment field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FaceSegment.Builder newBuilderForType()
Returns
TypeDescription
FaceSegment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FaceSegment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FaceSegment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FaceSegment.Builder toBuilder()
Returns
TypeDescription
FaceSegment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException