Class Entity.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
- com.google.cloud.contactcenterinsights.v1.Entity.Builder
-
- All Implemented Interfaces:
EntityOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Entity
public static final class Entity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder> implements EntityOrBuilder
The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location.
Protobuf typegoogle.cloud.contactcenterinsights.v1.Entity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Entity.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Entitybuild()EntitybuildPartial()Entity.Builderclear()Entity.BuilderclearDisplayName()The representative name for the entity.Entity.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Entity.BuilderclearMetadata()Entity.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Entity.BuilderclearSalience()The salience score associated with the entity in the [0, 1.0] range.Entity.BuilderclearSentiment()The aggregate sentiment expressed for this entity in the conversation.Entity.BuilderclearType()The entity type.Entity.Builderclone()booleancontainsMetadata(String key)Metadata associated with the entity.EntitygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()The representative name for the entity.com.google.protobuf.ByteStringgetDisplayNameBytes()The representative name for the entity.Map<String,String>getMetadata()Deprecated.intgetMetadataCount()Metadata associated with the entity.Map<String,String>getMetadataMap()Metadata associated with the entity.StringgetMetadataOrDefault(String key, String defaultValue)Metadata associated with the entity.StringgetMetadataOrThrow(String key)Metadata associated with the entity.Map<String,String>getMutableMetadata()Deprecated.floatgetSalience()The salience score associated with the entity in the [0, 1.0] range.SentimentDatagetSentiment()The aggregate sentiment expressed for this entity in the conversation.SentimentData.BuildergetSentimentBuilder()The aggregate sentiment expressed for this entity in the conversation.SentimentDataOrBuildergetSentimentOrBuilder()The aggregate sentiment expressed for this entity in the conversation.Entity.TypegetType()The entity type.intgetTypeValue()The entity type.booleanhasSentiment()The aggregate sentiment expressed for this entity in the conversation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Entity.BuildermergeFrom(Entity other)Entity.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Entity.BuildermergeFrom(com.google.protobuf.Message other)Entity.BuildermergeSentiment(SentimentData value)The aggregate sentiment expressed for this entity in the conversation.Entity.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Entity.BuilderputAllMetadata(Map<String,String> values)Metadata associated with the entity.Entity.BuilderputMetadata(String key, String value)Metadata associated with the entity.Entity.BuilderremoveMetadata(String key)Metadata associated with the entity.Entity.BuildersetDisplayName(String value)The representative name for the entity.Entity.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)The representative name for the entity.Entity.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Entity.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Entity.BuildersetSalience(float value)The salience score associated with the entity in the [0, 1.0] range.Entity.BuildersetSentiment(SentimentData value)The aggregate sentiment expressed for this entity in the conversation.Entity.BuildersetSentiment(SentimentData.Builder builderForValue)The aggregate sentiment expressed for this entity in the conversation.Entity.BuildersetType(Entity.Type value)The entity type.Entity.BuildersetTypeValue(int value)The entity type.Entity.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
clear
public Entity.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
getDefaultInstanceForType
public Entity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Entity build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Entity buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Entity.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
setField
public Entity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
clearField
public Entity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
clearOneof
public Entity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
setRepeatedField
public Entity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
addRepeatedField
public Entity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
mergeFrom
public Entity.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Entity.Builder>
-
mergeFrom
public Entity.Builder mergeFrom(Entity other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
mergeFrom
public Entity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Entity.Builder>- Throws:
IOException
-
getDisplayName
public String getDisplayName()
The representative name for the entity.
string display_name = 1;- Specified by:
getDisplayNamein interfaceEntityOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The representative name for the entity.
string display_name = 1;- Specified by:
getDisplayNameBytesin interfaceEntityOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public Entity.Builder setDisplayName(String value)
The representative name for the entity.
string display_name = 1;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Entity.Builder clearDisplayName()
The representative name for the entity.
string display_name = 1;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Entity.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The representative name for the entity.
string display_name = 1;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
The entity type.
.google.cloud.contactcenterinsights.v1.Entity.Type type = 2;- Specified by:
getTypeValuein interfaceEntityOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public Entity.Builder setTypeValue(int value)
The entity type.
.google.cloud.contactcenterinsights.v1.Entity.Type type = 2;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public Entity.Type getType()
The entity type.
.google.cloud.contactcenterinsights.v1.Entity.Type type = 2;- Specified by:
getTypein interfaceEntityOrBuilder- Returns:
- The type.
-
setType
public Entity.Builder setType(Entity.Type value)
The entity type.
.google.cloud.contactcenterinsights.v1.Entity.Type type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Entity.Builder clearType()
The entity type.
.google.cloud.contactcenterinsights.v1.Entity.Type type = 2;- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:EntityOrBuilderMetadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;- Specified by:
getMetadataCountin interfaceEntityOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;- Specified by:
containsMetadatain interfaceEntityOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceEntityOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;- Specified by:
getMetadataMapin interfaceEntityOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;- Specified by:
getMetadataOrDefaultin interfaceEntityOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;- Specified by:
getMetadataOrThrowin interfaceEntityOrBuilder
-
clearMetadata
public Entity.Builder clearMetadata()
-
removeMetadata
public Entity.Builder removeMetadata(String key)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;
-
getMutableMetadata
@Deprecated public Map<String,String> getMutableMetadata()
Deprecated.Use alternate mutation accessors instead.
-
putMetadata
public Entity.Builder putMetadata(String key, String value)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;
-
putAllMetadata
public Entity.Builder putAllMetadata(Map<String,String> values)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;
-
getSalience
public float getSalience()
The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
float salience = 4;- Specified by:
getSaliencein interfaceEntityOrBuilder- Returns:
- The salience.
-
setSalience
public Entity.Builder setSalience(float value)
The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
float salience = 4;- Parameters:
value- The salience to set.- Returns:
- This builder for chaining.
-
clearSalience
public Entity.Builder clearSalience()
The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
float salience = 4;- Returns:
- This builder for chaining.
-
hasSentiment
public boolean hasSentiment()
The aggregate sentiment expressed for this entity in the conversation.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5;- Specified by:
hasSentimentin interfaceEntityOrBuilder- Returns:
- Whether the sentiment field is set.
-
getSentiment
public SentimentData getSentiment()
The aggregate sentiment expressed for this entity in the conversation.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5;- Specified by:
getSentimentin interfaceEntityOrBuilder- Returns:
- The sentiment.
-
setSentiment
public Entity.Builder setSentiment(SentimentData value)
The aggregate sentiment expressed for this entity in the conversation.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5;
-
setSentiment
public Entity.Builder setSentiment(SentimentData.Builder builderForValue)
The aggregate sentiment expressed for this entity in the conversation.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5;
-
mergeSentiment
public Entity.Builder mergeSentiment(SentimentData value)
The aggregate sentiment expressed for this entity in the conversation.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5;
-
clearSentiment
public Entity.Builder clearSentiment()
The aggregate sentiment expressed for this entity in the conversation.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5;
-
getSentimentBuilder
public SentimentData.Builder getSentimentBuilder()
The aggregate sentiment expressed for this entity in the conversation.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5;
-
getSentimentOrBuilder
public SentimentDataOrBuilder getSentimentOrBuilder()
The aggregate sentiment expressed for this entity in the conversation.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 5;- Specified by:
getSentimentOrBuilderin interfaceEntityOrBuilder
-
setUnknownFields
public final Entity.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
mergeUnknownFields
public final Entity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>
-
-