Send feedback
Class DetectedAttribute.Builder (2.23.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.23.0 keyboard_arrow_down
public static final class DetectedAttribute . Builder extends GeneratedMessageV3 . Builder<DetectedAttribute . Builder > implements DetectedAttributeOrBuilder
A generic detected attribute represented by name in string format.
Protobuf type google.cloud.videointelligence.v1.DetectedAttribute
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DetectedAttribute . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public DetectedAttribute build ()
buildPartial()
public DetectedAttribute buildPartial ()
clear()
public DetectedAttribute . Builder clear ()
Overrides
clearConfidence()
public DetectedAttribute . Builder clearConfidence ()
Detected attribute confidence. Range [0, 1].
float confidence = 2;
clearField(Descriptors.FieldDescriptor field)
public DetectedAttribute . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearName()
public DetectedAttribute . Builder clearName ()
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public DetectedAttribute . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearValue()
public DetectedAttribute . Builder clearValue ()
Text value of the detection result. For example, the value for "HairColor"
can be "black", "blonde", etc.
string value = 3;
clone()
public DetectedAttribute . Builder clone ()
Overrides
getConfidence()
public float getConfidence ()
Detected attribute confidence. Range [0, 1].
float confidence = 2;
Returns Type Description float
The confidence.
getDefaultInstanceForType()
public DetectedAttribute getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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 Type Description 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 Type Description ByteString
The bytes for name.
getValue()
Text value of the detection result. For example, the value for "HairColor"
can be "black", "blonde", etc.
string value = 3;
Returns Type Description 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 Type Description ByteString
The bytes for value.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(DetectedAttribute other)
public DetectedAttribute . Builder mergeFrom ( DetectedAttribute other )
public DetectedAttribute . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public DetectedAttribute . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DetectedAttribute . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setConfidence(float value)
public DetectedAttribute . Builder setConfidence ( float value )
Detected attribute confidence. Range [0, 1].
float confidence = 2;
Parameter Name Description value
float
The confidence to set.
setField(Descriptors.FieldDescriptor field, Object value)
public DetectedAttribute . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setName(String value)
public DetectedAttribute . Builder setName ( String value )
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;
Parameter Name Description value
String
The name to set.
setNameBytes(ByteString value)
public DetectedAttribute . Builder setNameBytes ( ByteString value )
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;
Parameter Name Description value
ByteString
The bytes for name to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DetectedAttribute . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DetectedAttribute . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setValue(String value)
public DetectedAttribute . Builder setValue ( String value )
Text value of the detection result. For example, the value for "HairColor"
can be "black", "blonde", etc.
string value = 3;
Parameter Name Description value
String
The value to set.
setValueBytes(ByteString value)
public DetectedAttribute . Builder setValueBytes ( ByteString value )
Text value of the detection result. For example, the value for "HairColor"
can be "black", "blonde", etc.
string value = 3;
Parameter Name Description value
ByteString
The bytes for value to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]