Class ArticleSuggestionData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
- com.google.cloud.contactcenterinsights.v1.ArticleSuggestionData.Builder
-
- All Implemented Interfaces:
ArticleSuggestionDataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ArticleSuggestionData
public static final class ArticleSuggestionData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder> implements ArticleSuggestionDataOrBuilder
Agent Assist Article Suggestion data.
Protobuf typegoogle.cloud.contactcenterinsights.v1.ArticleSuggestionData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ArticleSuggestionData.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ArticleSuggestionDatabuild()ArticleSuggestionDatabuildPartial()ArticleSuggestionData.Builderclear()ArticleSuggestionData.BuilderclearConfidenceScore()The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).ArticleSuggestionData.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ArticleSuggestionData.BuilderclearMetadata()ArticleSuggestionData.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ArticleSuggestionData.BuilderclearQueryRecord()The name of the answer record.ArticleSuggestionData.BuilderclearSource()The knowledge document that this answer was extracted from.ArticleSuggestionData.BuilderclearTitle()Article title.ArticleSuggestionData.BuilderclearUri()Article URI.ArticleSuggestionData.Builderclone()booleancontainsMetadata(String key)Map that contains metadata about the Article Suggestion and the document that it originates from.floatgetConfidenceScore()The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).ArticleSuggestionDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMetadata()Deprecated.intgetMetadataCount()Map that contains metadata about the Article Suggestion and the document that it originates from.Map<String,String>getMetadataMap()Map that contains metadata about the Article Suggestion and the document that it originates from.StringgetMetadataOrDefault(String key, String defaultValue)Map that contains metadata about the Article Suggestion and the document that it originates from.StringgetMetadataOrThrow(String key)Map that contains metadata about the Article Suggestion and the document that it originates from.Map<String,String>getMutableMetadata()Deprecated.StringgetQueryRecord()The name of the answer record.com.google.protobuf.ByteStringgetQueryRecordBytes()The name of the answer record.StringgetSource()The knowledge document that this answer was extracted from.com.google.protobuf.ByteStringgetSourceBytes()The knowledge document that this answer was extracted from.StringgetTitle()Article title.com.google.protobuf.ByteStringgetTitleBytes()Article title.StringgetUri()Article URI.com.google.protobuf.ByteStringgetUriBytes()Article URI.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()ArticleSuggestionData.BuildermergeFrom(ArticleSuggestionData other)ArticleSuggestionData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ArticleSuggestionData.BuildermergeFrom(com.google.protobuf.Message other)ArticleSuggestionData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ArticleSuggestionData.BuilderputAllMetadata(Map<String,String> values)Map that contains metadata about the Article Suggestion and the document that it originates from.ArticleSuggestionData.BuilderputMetadata(String key, String value)Map that contains metadata about the Article Suggestion and the document that it originates from.ArticleSuggestionData.BuilderremoveMetadata(String key)Map that contains metadata about the Article Suggestion and the document that it originates from.ArticleSuggestionData.BuildersetConfidenceScore(float value)The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).ArticleSuggestionData.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ArticleSuggestionData.BuildersetQueryRecord(String value)The name of the answer record.ArticleSuggestionData.BuildersetQueryRecordBytes(com.google.protobuf.ByteString value)The name of the answer record.ArticleSuggestionData.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ArticleSuggestionData.BuildersetSource(String value)The knowledge document that this answer was extracted from.ArticleSuggestionData.BuildersetSourceBytes(com.google.protobuf.ByteString value)The knowledge document that this answer was extracted from.ArticleSuggestionData.BuildersetTitle(String value)Article title.ArticleSuggestionData.BuildersetTitleBytes(com.google.protobuf.ByteString value)Article title.ArticleSuggestionData.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ArticleSuggestionData.BuildersetUri(String value)Article URI.ArticleSuggestionData.BuildersetUriBytes(com.google.protobuf.ByteString value)Article URI.-
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<ArticleSuggestionData.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
clear
public ArticleSuggestionData.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<ArticleSuggestionData.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<ArticleSuggestionData.Builder>
-
getDefaultInstanceForType
public ArticleSuggestionData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ArticleSuggestionData build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ArticleSuggestionData buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ArticleSuggestionData.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<ArticleSuggestionData.Builder>
-
setField
public ArticleSuggestionData.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<ArticleSuggestionData.Builder>
-
clearField
public ArticleSuggestionData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
clearOneof
public ArticleSuggestionData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
setRepeatedField
public ArticleSuggestionData.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<ArticleSuggestionData.Builder>
-
addRepeatedField
public ArticleSuggestionData.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<ArticleSuggestionData.Builder>
-
mergeFrom
public ArticleSuggestionData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ArticleSuggestionData.Builder>
-
mergeFrom
public ArticleSuggestionData.Builder mergeFrom(ArticleSuggestionData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
mergeFrom
public ArticleSuggestionData.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<ArticleSuggestionData.Builder>- Throws:
IOException
-
getTitle
public String getTitle()
Article title.
string title = 1;- Specified by:
getTitlein interfaceArticleSuggestionDataOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
Article title.
string title = 1;- Specified by:
getTitleBytesin interfaceArticleSuggestionDataOrBuilder- Returns:
- The bytes for title.
-
setTitle
public ArticleSuggestionData.Builder setTitle(String value)
Article title.
string title = 1;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
public ArticleSuggestionData.Builder clearTitle()
Article title.
string title = 1;- Returns:
- This builder for chaining.
-
setTitleBytes
public ArticleSuggestionData.Builder setTitleBytes(com.google.protobuf.ByteString value)
Article title.
string title = 1;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getUri
public String getUri()
Article URI.
string uri = 2;- Specified by:
getUriin interfaceArticleSuggestionDataOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
Article URI.
string uri = 2;- Specified by:
getUriBytesin interfaceArticleSuggestionDataOrBuilder- Returns:
- The bytes for uri.
-
setUri
public ArticleSuggestionData.Builder setUri(String value)
Article URI.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
public ArticleSuggestionData.Builder clearUri()
Article URI.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
public ArticleSuggestionData.Builder setUriBytes(com.google.protobuf.ByteString value)
Article URI.
string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getConfidenceScore
public float getConfidenceScore()
The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence_score = 3;- Specified by:
getConfidenceScorein interfaceArticleSuggestionDataOrBuilder- Returns:
- The confidenceScore.
-
setConfidenceScore
public ArticleSuggestionData.Builder setConfidenceScore(float value)
The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence_score = 3;- Parameters:
value- The confidenceScore to set.- Returns:
- This builder for chaining.
-
clearConfidenceScore
public ArticleSuggestionData.Builder clearConfidenceScore()
The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence_score = 3;- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:ArticleSuggestionDataOrBuilderMap that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4;- Specified by:
getMetadataCountin interfaceArticleSuggestionDataOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4;- Specified by:
containsMetadatain interfaceArticleSuggestionDataOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceArticleSuggestionDataOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4;- Specified by:
getMetadataMapin interfaceArticleSuggestionDataOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4;- Specified by:
getMetadataOrDefaultin interfaceArticleSuggestionDataOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4;- Specified by:
getMetadataOrThrowin interfaceArticleSuggestionDataOrBuilder
-
clearMetadata
public ArticleSuggestionData.Builder clearMetadata()
-
removeMetadata
public ArticleSuggestionData.Builder removeMetadata(String key)
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4;
-
getMutableMetadata
@Deprecated public Map<String,String> getMutableMetadata()
Deprecated.Use alternate mutation accessors instead.
-
putMetadata
public ArticleSuggestionData.Builder putMetadata(String key, String value)
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4;
-
putAllMetadata
public ArticleSuggestionData.Builder putAllMetadata(Map<String,String> values)
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4;
-
getQueryRecord
public String getQueryRecord()
The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}string query_record = 5;- Specified by:
getQueryRecordin interfaceArticleSuggestionDataOrBuilder- Returns:
- The queryRecord.
-
getQueryRecordBytes
public com.google.protobuf.ByteString getQueryRecordBytes()
The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}string query_record = 5;- Specified by:
getQueryRecordBytesin interfaceArticleSuggestionDataOrBuilder- Returns:
- The bytes for queryRecord.
-
setQueryRecord
public ArticleSuggestionData.Builder setQueryRecord(String value)
The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}string query_record = 5;- Parameters:
value- The queryRecord to set.- Returns:
- This builder for chaining.
-
clearQueryRecord
public ArticleSuggestionData.Builder clearQueryRecord()
The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}string query_record = 5;- Returns:
- This builder for chaining.
-
setQueryRecordBytes
public ArticleSuggestionData.Builder setQueryRecordBytes(com.google.protobuf.ByteString value)
The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}string query_record = 5;- Parameters:
value- The bytes for queryRecord to set.- Returns:
- This builder for chaining.
-
getSource
public String getSource()
The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}string source = 6;- Specified by:
getSourcein interfaceArticleSuggestionDataOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()
The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}string source = 6;- Specified by:
getSourceBytesin interfaceArticleSuggestionDataOrBuilder- Returns:
- The bytes for source.
-
setSource
public ArticleSuggestionData.Builder setSource(String value)
The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}string source = 6;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
public ArticleSuggestionData.Builder clearSource()
The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}string source = 6;- Returns:
- This builder for chaining.
-
setSourceBytes
public ArticleSuggestionData.Builder setSourceBytes(com.google.protobuf.ByteString value)
The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}string source = 6;- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ArticleSuggestionData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
mergeUnknownFields
public final ArticleSuggestionData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
-