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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ArticleSuggestionData
build()
ArticleSuggestionData
buildPartial()
ArticleSuggestionData.Builder
clear()
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).ArticleSuggestionData.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ArticleSuggestionData.Builder
clearMetadata()
ArticleSuggestionData.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ArticleSuggestionData.Builder
clearQueryRecord()
The name of the answer record.ArticleSuggestionData.Builder
clearSource()
The knowledge document that this answer was extracted from.ArticleSuggestionData.Builder
clearTitle()
Article title.ArticleSuggestionData.Builder
clearUri()
Article URI.ArticleSuggestionData.Builder
clone()
boolean
containsMetadata(String key)
Map that contains metadata about the Article Suggestion and the document that it originates from.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).ArticleSuggestionData
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getMetadata()
Deprecated.int
getMetadataCount()
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.String
getMetadataOrDefault(String key, String defaultValue)
Map that contains metadata about the Article Suggestion and the document that it originates from.String
getMetadataOrThrow(String key)
Map that contains metadata about the Article Suggestion and the document that it originates from.Map<String,String>
getMutableMetadata()
Deprecated.String
getQueryRecord()
The name of the answer record.com.google.protobuf.ByteString
getQueryRecordBytes()
The name of the answer record.String
getSource()
The knowledge document that this answer was extracted from.com.google.protobuf.ByteString
getSourceBytes()
The knowledge document that this answer was extracted from.String
getTitle()
Article title.com.google.protobuf.ByteString
getTitleBytes()
Article title.String
getUri()
Article URI.com.google.protobuf.ByteString
getUriBytes()
Article URI.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ArticleSuggestionData.Builder
mergeFrom(ArticleSuggestionData other)
ArticleSuggestionData.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ArticleSuggestionData.Builder
mergeFrom(com.google.protobuf.Message other)
ArticleSuggestionData.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ArticleSuggestionData.Builder
putAllMetadata(Map<String,String> values)
Map that contains metadata about the Article Suggestion and the document that it originates from.ArticleSuggestionData.Builder
putMetadata(String key, String value)
Map that contains metadata about the Article Suggestion and the document that it originates from.ArticleSuggestionData.Builder
removeMetadata(String key)
Map that contains metadata about the Article Suggestion and the document that it originates from.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).ArticleSuggestionData.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ArticleSuggestionData.Builder
setQueryRecord(String value)
The name of the answer record.ArticleSuggestionData.Builder
setQueryRecordBytes(com.google.protobuf.ByteString value)
The name of the answer record.ArticleSuggestionData.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ArticleSuggestionData.Builder
setSource(String value)
The knowledge document that this answer was extracted from.ArticleSuggestionData.Builder
setSourceBytes(com.google.protobuf.ByteString value)
The knowledge document that this answer was extracted from.ArticleSuggestionData.Builder
setTitle(String value)
Article title.ArticleSuggestionData.Builder
setTitleBytes(com.google.protobuf.ByteString value)
Article title.ArticleSuggestionData.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ArticleSuggestionData.Builder
setUri(String value)
Article URI.ArticleSuggestionData.Builder
setUriBytes(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
clear
public ArticleSuggestionData.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
getDefaultInstanceForType
public ArticleSuggestionData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ArticleSuggestionData build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ArticleSuggestionData buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ArticleSuggestionData.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
setField
public ArticleSuggestionData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
clearField
public ArticleSuggestionData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
clearOneof
public ArticleSuggestionData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
setRepeatedField
public ArticleSuggestionData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
addRepeatedField
public ArticleSuggestionData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
mergeFrom
public ArticleSuggestionData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ArticleSuggestionData.Builder>
-
mergeFrom
public ArticleSuggestionData.Builder mergeFrom(ArticleSuggestionData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ArticleSuggestionData.Builder>
- Throws:
IOException
-
getTitle
public String getTitle()
Article title.
string title = 1;
- Specified by:
getTitle
in interfaceArticleSuggestionDataOrBuilder
- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
Article title.
string title = 1;
- Specified by:
getTitleBytes
in 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:
getUri
in interfaceArticleSuggestionDataOrBuilder
- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
Article URI.
string uri = 2;
- Specified by:
getUriBytes
in 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:
getConfidenceScore
in 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:ArticleSuggestionDataOrBuilder
Map that contains metadata about the Article Suggestion and the document that it originates from.
map<string, string> metadata = 4;
- Specified by:
getMetadataCount
in 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:
containsMetadata
in interfaceArticleSuggestionDataOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in 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:
getMetadataMap
in 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:
getMetadataOrDefault
in 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:
getMetadataOrThrow
in 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:
getQueryRecord
in 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:
getQueryRecordBytes
in 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:
getSource
in 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:
getSourceBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
mergeUnknownFields
public final ArticleSuggestionData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ArticleSuggestionData.Builder>
-
-