Package com.google.cloud.dialogflow.v2
Class ArticleAnswer.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ArticleAnswer.Builder>
com.google.cloud.dialogflow.v2.ArticleAnswer.Builder
- All Implemented Interfaces:
ArticleAnswerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ArticleAnswer
public static final class ArticleAnswer.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ArticleAnswer.Builder>
implements ArticleAnswerOrBuilder
Represents article answer.Protobuf type
google.cloud.dialogflow.v2.ArticleAnswer-
Method Summary
Modifier and TypeMethodDescriptionaddAllSnippets(Iterable<String> values) Article snippets.addSnippets(String value) Article snippets.addSnippetsBytes(com.google.protobuf.ByteString value) Article snippets.build()clear()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"Article match confidence.Article snippets.The article title.clearUri()The article URI.booleancontainsMetadata(String key) A map that contains metadata about the answer and the document from which it originates.The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"com.google.protobuf.ByteStringThe name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"floatArticle match confidence.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intA map that contains metadata about the answer and the document from which it originates.A map that contains metadata about the answer and the document from which it originates.getMetadataOrDefault(String key, String defaultValue) A map that contains metadata about the answer and the document from which it originates.getMetadataOrThrow(String key) A map that contains metadata about the answer and the document from which it originates.Deprecated.getSnippets(int index) Article snippets.com.google.protobuf.ByteStringgetSnippetsBytes(int index) Article snippets.intArticle snippets.com.google.protobuf.ProtocolStringListArticle snippets.getTitle()The article title.com.google.protobuf.ByteStringThe article title.getUri()The article URI.com.google.protobuf.ByteStringThe article URI.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(ArticleAnswer other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetadata(Map<String, String> values) A map that contains metadata about the answer and the document from which it originates.putMetadata(String key, String value) A map that contains metadata about the answer and the document from which it originates.removeMetadata(String key) A map that contains metadata about the answer and the document from which it originates.setAnswerRecord(String value) The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"setAnswerRecordBytes(com.google.protobuf.ByteString value) The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"setConfidence(float value) Article match confidence.setSnippets(int index, String value) Article snippets.The article title.setTitleBytes(com.google.protobuf.ByteString value) The article title.The article URI.setUriBytes(com.google.protobuf.ByteString value) The 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<ArticleAnswer.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ArticleAnswer.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ArticleAnswer.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<ArticleAnswer.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<ArticleAnswer.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<ArticleAnswer.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ArticleAnswer.Builder>
-
mergeFrom
public ArticleAnswer.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<ArticleAnswer.Builder>- Throws:
IOException
-
getTitle
The article title.
string title = 1;- Specified by:
getTitlein interfaceArticleAnswerOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()The article title.
string title = 1;- Specified by:
getTitleBytesin interfaceArticleAnswerOrBuilder- Returns:
- The bytes for title.
-
setTitle
The article title.
string title = 1;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
The article title.
string title = 1;- Returns:
- This builder for chaining.
-
setTitleBytes
The article title.
string title = 1;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getUri
The article URI.
string uri = 2;- Specified by:
getUriin interfaceArticleAnswerOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The article URI.
string uri = 2;- Specified by:
getUriBytesin interfaceArticleAnswerOrBuilder- Returns:
- The bytes for uri.
-
setUri
The article URI.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
The article URI.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
The article URI.
string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getSnippetsList
public com.google.protobuf.ProtocolStringList getSnippetsList()Article snippets.
repeated string snippets = 3;- Specified by:
getSnippetsListin interfaceArticleAnswerOrBuilder- Returns:
- A list containing the snippets.
-
getSnippetsCount
public int getSnippetsCount()Article snippets.
repeated string snippets = 3;- Specified by:
getSnippetsCountin interfaceArticleAnswerOrBuilder- Returns:
- The count of snippets.
-
getSnippets
Article snippets.
repeated string snippets = 3;- Specified by:
getSnippetsin interfaceArticleAnswerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The snippets at the given index.
-
getSnippetsBytes
public com.google.protobuf.ByteString getSnippetsBytes(int index) Article snippets.
repeated string snippets = 3;- Specified by:
getSnippetsBytesin interfaceArticleAnswerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the snippets at the given index.
-
setSnippets
Article snippets.
repeated string snippets = 3;- Parameters:
index- The index to set the value at.value- The snippets to set.- Returns:
- This builder for chaining.
-
addSnippets
Article snippets.
repeated string snippets = 3;- Parameters:
value- The snippets to add.- Returns:
- This builder for chaining.
-
addAllSnippets
Article snippets.
repeated string snippets = 3;- Parameters:
values- The snippets to add.- Returns:
- This builder for chaining.
-
clearSnippets
Article snippets.
repeated string snippets = 3;- Returns:
- This builder for chaining.
-
addSnippetsBytes
Article snippets.
repeated string snippets = 3;- Parameters:
value- The bytes of the snippets to add.- Returns:
- This builder for chaining.
-
getConfidence
public float getConfidence()Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;- Specified by:
getConfidencein interfaceArticleAnswerOrBuilder- Returns:
- The confidence.
-
setConfidence
Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:ArticleAnswerOrBuilderA map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
getMetadataCountin interfaceArticleAnswerOrBuilder
-
containsMetadata
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
containsMetadatain interfaceArticleAnswerOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceArticleAnswerOrBuilder
-
getMetadataMap
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
getMetadataMapin interfaceArticleAnswerOrBuilder
-
getMetadataOrDefault
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
getMetadataOrDefaultin interfaceArticleAnswerOrBuilder
-
getMetadataOrThrow
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
getMetadataOrThrowin interfaceArticleAnswerOrBuilder
-
clearMetadata
-
removeMetadata
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
putAllMetadata
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
getAnswerRecord
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;- Specified by:
getAnswerRecordin interfaceArticleAnswerOrBuilder- Returns:
- The answerRecord.
-
getAnswerRecordBytes
public com.google.protobuf.ByteString getAnswerRecordBytes()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;- Specified by:
getAnswerRecordBytesin interfaceArticleAnswerOrBuilder- Returns:
- The bytes for answerRecord.
-
setAnswerRecord
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;- Parameters:
value- The answerRecord to set.- Returns:
- This builder for chaining.
-
clearAnswerRecord
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;- Returns:
- This builder for chaining.
-
setAnswerRecordBytes
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;- Parameters:
value- The bytes for answerRecord to set.- Returns:
- This builder for chaining.
-