Class Entity.Builder (2.2.0)

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

Detected entity from video analysis.

Protobuf type google.cloud.videointelligence.v1.Entity

Implements

EntityOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Entity build()
Returns
TypeDescription
Entity

buildPartial()

public Entity buildPartial()
Returns
TypeDescription
Entity

clear()

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

clearDescription()

public Entity.Builder clearDescription()

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

string description = 2;

Returns
TypeDescription
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
TypeDescription
Entity.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Entity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Entity.Builder
Overrides

clearLanguageCode()

public Entity.Builder clearLanguageCode()

Language code for description in BCP-47 format.

string language_code = 3;

Returns
TypeDescription
Entity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Entity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Entity.Builder
Overrides

clone()

public Entity.Builder clone()
Returns
TypeDescription
Entity.Builder
Overrides

getDefaultInstanceForType()

public Entity getDefaultInstanceForType()
Returns
TypeDescription
Entity

getDescription()

public String getDescription()

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

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for entityId.

getLanguageCode()

public String getLanguageCode()

Language code for description in BCP-47 format.

string language_code = 3;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Language code for description in BCP-47 format.

string language_code = 3;

Returns
TypeDescription
ByteString

The bytes for languageCode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Entity other)

public Entity.Builder mergeFrom(Entity other)
Parameter
NameDescription
otherEntity
Returns
TypeDescription
Entity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public Entity.Builder setDescription(String value)

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

string description = 2;

Parameter
NameDescription
valueString

The description to set.

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

The bytes for description to set.

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

The entityId to set.

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

The bytes for entityId to set.

Returns
TypeDescription
Entity.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The languageCode to set.

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

The bytes for languageCode to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Entity.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Entity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Entity.Builder
Overrides