Class Entity.Builder (2.44.0)

public static final class Entity.Builder extends GeneratedMessageV3.Builder<Entity.Builder> implements EntityOrBuilder

Detected entity from video analysis.

Protobuf type google.cloud.videointelligence.v1p3beta1.Entity

Implements

EntityOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Entity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Entity.Builder
Overrides

build()

public Entity build()
Returns
Type Description
Entity

buildPartial()

public Entity buildPartial()
Returns
Type Description
Entity

clear()

public Entity.Builder clear()
Returns
Type Description
Entity.Builder
Overrides

clearDescription()

public Entity.Builder clearDescription()

Textual description, e.g., Fixed-gear bicycle.

string description = 2;

Returns
Type Description
Entity.Builder

This builder for chaining.

clearEntityId()

public Entity.Builder clearEntityId()

Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.

string entity_id = 1;

Returns
Type Description
Entity.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Entity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Entity.Builder
Overrides

clearLanguageCode()

public Entity.Builder clearLanguageCode()

Language code for description in BCP-47 format.

string language_code = 3;

Returns
Type Description
Entity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Entity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Entity.Builder
Overrides

clone()

public Entity.Builder clone()
Returns
Type Description
Entity.Builder
Overrides

getDefaultInstanceForType()

public Entity getDefaultInstanceForType()
Returns
Type Description
Entity

getDescription()

public String getDescription()

Textual description, e.g., Fixed-gear bicycle.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Textual description, e.g., Fixed-gear bicycle.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntityId()

public String getEntityId()

Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.

string entity_id = 1;

Returns
Type Description
String

The entityId.

getEntityIdBytes()

public ByteString getEntityIdBytes()

Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.

string entity_id = 1;

Returns
Type Description
ByteString

The bytes for entityId.

getLanguageCode()

public String getLanguageCode()

Language code for description in BCP-47 format.

string language_code = 3;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Language code for description in BCP-47 format.

string language_code = 3;

Returns
Type Description
ByteString

The bytes for languageCode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Entity other)

public Entity.Builder mergeFrom(Entity other)
Parameter
Name Description
other Entity
Returns
Type Description
Entity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Entity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Entity.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Entity.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Entity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Entity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Entity.Builder
Overrides

setDescription(String value)

public Entity.Builder setDescription(String value)

Textual description, e.g., Fixed-gear bicycle.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Entity.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Entity.Builder setDescriptionBytes(ByteString value)

Textual description, e.g., Fixed-gear bicycle.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Entity.Builder

This builder for chaining.

setEntityId(String value)

public Entity.Builder setEntityId(String value)

Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.

string entity_id = 1;

Parameter
Name Description
value String

The entityId to set.

Returns
Type Description
Entity.Builder

This builder for chaining.

setEntityIdBytes(ByteString value)

public Entity.Builder setEntityIdBytes(ByteString value)

Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.

string entity_id = 1;

Parameter
Name Description
value ByteString

The bytes for entityId to set.

Returns
Type Description
Entity.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Entity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Entity.Builder
Overrides

setLanguageCode(String value)

public Entity.Builder setLanguageCode(String value)

Language code for description in BCP-47 format.

string language_code = 3;

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
Entity.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public Entity.Builder setLanguageCodeBytes(ByteString value)

Language code for description in BCP-47 format.

string language_code = 3;

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
Entity.Builder

This builder for chaining.

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

public Entity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Entity.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Entity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Entity.Builder
Overrides