public final class FaceAnnotation extends GeneratedMessageV3 implements FaceAnnotationOrBuilder
Face annotation.Protobuf type
google.cloud.videointelligence.v1beta1.FaceAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
FaceAnnotation.Builder
Face annotation.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
LOCATIONS_FIELD_NUMBER |
static int |
SEGMENTS_FIELD_NUMBER |
static int |
THUMBNAIL_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int THUMBNAIL_FIELD_NUMBER
public static final int SEGMENTS_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getThumbnail()
Thumbnail of a representative face view (in JPEG format). Encoding: base64.
string thumbnail = 1;
getThumbnail
in interface FaceAnnotationOrBuilder
public ByteString getThumbnailBytes()
Thumbnail of a representative face view (in JPEG format). Encoding: base64.
string thumbnail = 1;
getThumbnailBytes
in interface FaceAnnotationOrBuilder
public java.util.List<VideoSegment> getSegmentsList()
All locations where a face was detected. Faces are detected and tracked on a per-video basis (as opposed to across multiple videos).
repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
getSegmentsList
in interface FaceAnnotationOrBuilder
public java.util.List<? extends VideoSegmentOrBuilder> getSegmentsOrBuilderList()
All locations where a face was detected. Faces are detected and tracked on a per-video basis (as opposed to across multiple videos).
repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
getSegmentsOrBuilderList
in interface FaceAnnotationOrBuilder
public int getSegmentsCount()
All locations where a face was detected. Faces are detected and tracked on a per-video basis (as opposed to across multiple videos).
repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
getSegmentsCount
in interface FaceAnnotationOrBuilder
public VideoSegment getSegments(int index)
All locations where a face was detected. Faces are detected and tracked on a per-video basis (as opposed to across multiple videos).
repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
getSegments
in interface FaceAnnotationOrBuilder
public VideoSegmentOrBuilder getSegmentsOrBuilder(int index)
All locations where a face was detected. Faces are detected and tracked on a per-video basis (as opposed to across multiple videos).
repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
getSegmentsOrBuilder
in interface FaceAnnotationOrBuilder
public java.util.List<FaceLocation> getLocationsList()
Face locations at one frame per second.
repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
getLocationsList
in interface FaceAnnotationOrBuilder
public java.util.List<? extends FaceLocationOrBuilder> getLocationsOrBuilderList()
Face locations at one frame per second.
repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
getLocationsOrBuilderList
in interface FaceAnnotationOrBuilder
public int getLocationsCount()
Face locations at one frame per second.
repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
getLocationsCount
in interface FaceAnnotationOrBuilder
public FaceLocation getLocations(int index)
Face locations at one frame per second.
repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
getLocations
in interface FaceAnnotationOrBuilder
public FaceLocationOrBuilder getLocationsOrBuilder(int index)
Face locations at one frame per second.
repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
getLocationsOrBuilder
in interface FaceAnnotationOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static FaceAnnotation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public FaceAnnotation.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static FaceAnnotation.Builder newBuilder()
public static FaceAnnotation.Builder newBuilder(FaceAnnotation prototype)
public FaceAnnotation.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected FaceAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static FaceAnnotation getDefaultInstance()
public static Parser<FaceAnnotation> parser()
public Parser<FaceAnnotation> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public FaceAnnotation getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder