Class DetectedAttribute.Builder (2.1.0)

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.v1p3beta1.DetectedAttribute

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DetectedAttribute.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DetectedAttribute.Builder
Overrides

build()

public DetectedAttribute build()
Returns
TypeDescription
DetectedAttribute

buildPartial()

public DetectedAttribute buildPartial()
Returns
TypeDescription
DetectedAttribute

clear()

public DetectedAttribute.Builder clear()
Returns
TypeDescription
DetectedAttribute.Builder
Overrides

clearConfidence()

public DetectedAttribute.Builder clearConfidence()

Detected attribute confidence. Range [0, 1].

float confidence = 2;

Returns
TypeDescription
DetectedAttribute.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DetectedAttribute.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DetectedAttribute.Builder
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;

Returns
TypeDescription
DetectedAttribute.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DetectedAttribute.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DetectedAttribute.Builder
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;

Returns
TypeDescription
DetectedAttribute.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DetectedAttribute other)

public DetectedAttribute.Builder mergeFrom(DetectedAttribute other)
Parameter
NameDescription
otherDetectedAttribute
Returns
TypeDescription
DetectedAttribute.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DetectedAttribute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DetectedAttribute.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DetectedAttribute.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DetectedAttribute.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DetectedAttribute.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DetectedAttribute.Builder
Overrides

setConfidence(float value)

public DetectedAttribute.Builder setConfidence(float value)

Detected attribute confidence. Range [0, 1].

float confidence = 2;

Parameter
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
DetectedAttribute.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DetectedAttribute.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DetectedAttribute.Builder
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DetectedAttribute.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DetectedAttribute.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DetectedAttribute.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DetectedAttribute.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DetectedAttribute.Builder
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
NameDescription
valueString

The value to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
DetectedAttribute.Builder

This builder for chaining.