Class ArticleSuggestionData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ArticleSuggestionData.Builder>
implements ArticleSuggestionDataOrBuilder
Agent Assist Article Suggestion data.Protobuf type
google.cloud.contactcenterinsights.v1.ArticleSuggestionData-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()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).The name of the answer record.The knowledge document that this answer was extracted from.Article title.clearUri()Article URI.booleancontainsMetadata(String key) Map that contains metadata about the Article Suggestion and the document that it originates from.floatThe 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).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intMap that contains metadata about the Article Suggestion and the document that it originates from.Map that contains metadata about the Article Suggestion and the document that it originates from.getMetadataOrDefault(String key, String defaultValue) Map that contains metadata about the Article Suggestion and the document that it originates from.getMetadataOrThrow(String key) Map that contains metadata about the Article Suggestion and the document that it originates from.Deprecated.The name of the answer record.com.google.protobuf.ByteStringThe name of the answer record.The knowledge document that this answer was extracted from.com.google.protobuf.ByteStringThe knowledge document that this answer was extracted from.getTitle()Article title.com.google.protobuf.ByteStringArticle title.getUri()Article URI.com.google.protobuf.ByteStringArticle URI.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(ArticleSuggestionData other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetadata(Map<String, String> values) Map that contains metadata about the Article Suggestion and the document that it originates from.putMetadata(String key, String value) Map that contains metadata about the Article Suggestion and the document that it originates from.removeMetadata(String key) Map that contains metadata about the Article Suggestion and the document that it originates from.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).setQueryRecord(String value) The name of the answer record.setQueryRecordBytes(com.google.protobuf.ByteString value) The name of the answer record.The knowledge document that this answer was extracted from.setSourceBytes(com.google.protobuf.ByteString value) The knowledge document that this answer was extracted from.Article title.setTitleBytes(com.google.protobuf.ByteString value) Article title.Article URI.setUriBytes(com.google.protobuf.ByteString value) Article URI.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ArticleSuggestionData.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ArticleSuggestionData.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ArticleSuggestionData.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ArticleSuggestionData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ArticleSuggestionData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
Article title.
string title = 1;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Article title.
string title = 1;- Returns:
- This builder for chaining.
-
setTitleBytes
Article title.
string title = 1;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
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
Article URI.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
Article URI.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
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
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
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
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.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceArticleSuggestionDataOrBuilder
-
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
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
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
-
removeMetadata
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4; -
putAllMetadata
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4; -
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
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
The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}string query_record = 5;- Returns:
- This builder for chaining.
-
setQueryRecordBytes
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
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
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
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
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.
-