Class DetectedAttribute (2.2.13)

public final class DetectedAttribute extends GeneratedMessageV3 implements DetectedAttributeOrBuilder

A generic detected attribute represented by name in string format.

Protobuf type google.cloud.videointelligence.v1.DetectedAttribute

Static Fields

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DetectedAttribute getDefaultInstance()
Returns
TypeDescription
DetectedAttribute

getDescriptor()

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

newBuilder()

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

newBuilder(DetectedAttribute prototype)

public static DetectedAttribute.Builder newBuilder(DetectedAttribute prototype)
Parameter
NameDescription
prototypeDetectedAttribute
Returns
TypeDescription
DetectedAttribute.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConfidence()

public float getConfidence()

Detected attribute confidence. Range [0, 1].

float confidence = 2;

Returns
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public DetectedAttribute getDefaultInstanceForType()
Returns
TypeDescription
DetectedAttribute

getName()

public String getName()

The name of the attribute, for example, glasses, dark_glasses, mouth_open. A full list of supported type names will be provided in the document.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the attribute, for example, glasses, dark_glasses, mouth_open. A full list of supported type names will be provided in the document.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValue()

public String getValue()

Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc.

string value = 3;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc.

string value = 3;

Returns
TypeDescription
ByteString

The bytes for value.

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 DetectedAttribute.Builder newBuilderForType()
Returns
TypeDescription
DetectedAttribute.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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