public static final class DetectedAttribute.Builder extends GeneratedMessage.Builder<DetectedAttribute.Builder> implements DetectedAttributeOrBuilderA generic detected attribute represented by name in string format.
Protobuf type google.cloud.videointelligence.v1.DetectedAttribute
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DetectedAttribute.BuilderImplements
DetectedAttributeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DetectedAttribute build()| Returns | |
|---|---|
| Type | Description |
DetectedAttribute |
|
buildPartial()
public DetectedAttribute buildPartial()| Returns | |
|---|---|
| Type | Description |
DetectedAttribute |
|
clear()
public DetectedAttribute.Builder clear()| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
|
clearConfidence()
public DetectedAttribute.Builder clearConfidence()Detected attribute confidence. Range [0, 1].
float confidence = 2;
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
This builder for chaining. |
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;
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
This builder for chaining. |
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;
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
This builder for chaining. |
getConfidence()
public float getConfidence()Detected attribute confidence. Range [0, 1].
float confidence = 2;
| Returns | |
|---|---|
| Type | Description |
float |
The confidence. |
getDefaultInstanceForType()
public DetectedAttribute getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DetectedAttribute |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| 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()
public String 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DetectedAttribute other)
public DetectedAttribute.Builder mergeFrom(DetectedAttribute other)| Parameter | |
|---|---|
| Name | Description |
other |
DetectedAttribute |
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DetectedAttribute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DetectedAttribute.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
|
setConfidence(float value)
public DetectedAttribute.Builder setConfidence(float value)Detected attribute confidence. Range [0, 1].
float confidence = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe confidence to set. |
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
This builder for chaining. |
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 |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
This builder for chaining. |
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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
This builder for chaining. |
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 |
StringThe value to set. |
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
This builder for chaining. |
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 |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
DetectedAttribute.Builder |
This builder for chaining. |