Class Suggestion.Article.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Suggestion.Article.Builder>
com.google.cloud.dialogflow.v2beta1.Suggestion.Article.Builder
- All Implemented Interfaces:
Suggestion.ArticleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Suggestion.Article
public static final class Suggestion.Article.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Suggestion.Article.Builder>
implements Suggestion.ArticleOrBuilder
Represents suggested article.Protobuf type
google.cloud.dialogflow.v2beta1.Suggestion.Article-
Method Summary
Modifier and TypeMethodDescriptionaddAllSnippets(Iterable<String> values) Output only.addSnippets(String value) Output only.addSnippetsBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.clearUri()Output only.booleancontainsMetadata(String key) Output only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intOutput only.Output only.getMetadataOrDefault(String key, String defaultValue) Output only.getMetadataOrThrow(String key) Output only.Deprecated.getSnippets(int index) Output only.com.google.protobuf.ByteStringgetSnippetsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.getTitle()Output only.com.google.protobuf.ByteStringOutput only.getUri()Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(Suggestion.Article other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetadata(Map<String, String> values) Output only.putMetadata(String key, String value) Output only.removeMetadata(String key) Output only.setAnswerRecord(String value) Output only.setAnswerRecordBytes(com.google.protobuf.ByteString value) Output only.setSnippets(int index, String value) Output only.Output only.setTitleBytes(com.google.protobuf.ByteString value) Output only.Output only.setUriBytes(com.google.protobuf.ByteString value) Output only.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<Suggestion.Article.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Suggestion.Article.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Suggestion.Article.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<Suggestion.Article.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<Suggestion.Article.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<Suggestion.Article.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Suggestion.Article.Builder>
-
mergeFrom
public Suggestion.Article.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<Suggestion.Article.Builder>- Throws:
IOException
-
getTitle
Output only. The article title.
string title = 1;- Specified by:
getTitlein interfaceSuggestion.ArticleOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Output only. The article title.
string title = 1;- Specified by:
getTitleBytesin interfaceSuggestion.ArticleOrBuilder- Returns:
- The bytes for title.
-
setTitle
Output only. The article title.
string title = 1;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Output only. The article title.
string title = 1;- Returns:
- This builder for chaining.
-
setTitleBytes
Output only. The article title.
string title = 1;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getUri
Output only. The article URI.
string uri = 2;- Specified by:
getUriin interfaceSuggestion.ArticleOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()Output only. The article URI.
string uri = 2;- Specified by:
getUriBytesin interfaceSuggestion.ArticleOrBuilder- Returns:
- The bytes for uri.
-
setUri
Output only. The article URI.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
Output only. The article URI.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
Output only. 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()Output only. Article snippets.
repeated string snippets = 3;- Specified by:
getSnippetsListin interfaceSuggestion.ArticleOrBuilder- Returns:
- A list containing the snippets.
-
getSnippetsCount
public int getSnippetsCount()Output only. Article snippets.
repeated string snippets = 3;- Specified by:
getSnippetsCountin interfaceSuggestion.ArticleOrBuilder- Returns:
- The count of snippets.
-
getSnippets
Output only. Article snippets.
repeated string snippets = 3;- Specified by:
getSnippetsin interfaceSuggestion.ArticleOrBuilder- 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) Output only. Article snippets.
repeated string snippets = 3;- Specified by:
getSnippetsBytesin interfaceSuggestion.ArticleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the snippets at the given index.
-
setSnippets
Output only. 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
Output only. Article snippets.
repeated string snippets = 3;- Parameters:
value- The snippets to add.- Returns:
- This builder for chaining.
-
addAllSnippets
Output only. Article snippets.
repeated string snippets = 3;- Parameters:
values- The snippets to add.- Returns:
- This builder for chaining.
-
clearSnippets
Output only. Article snippets.
repeated string snippets = 3;- Returns:
- This builder for chaining.
-
addSnippetsBytes
Output only. Article snippets.
repeated string snippets = 3;- Parameters:
value- The bytes of the snippets to add.- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:Suggestion.ArticleOrBuilderOutput only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
getMetadataCountin interfaceSuggestion.ArticleOrBuilder
-
containsMetadata
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
containsMetadatain interfaceSuggestion.ArticleOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSuggestion.ArticleOrBuilder
-
getMetadataMap
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
getMetadataMapin interfaceSuggestion.ArticleOrBuilder
-
getMetadataOrDefault
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
getMetadataOrDefaultin interfaceSuggestion.ArticleOrBuilder
-
getMetadataOrThrow
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;- Specified by:
getMetadataOrThrowin interfaceSuggestion.ArticleOrBuilder
-
clearMetadata
-
removeMetadata
Output only. 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
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
putAllMetadata
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5; -
getAnswerRecord
Output only. 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 interfaceSuggestion.ArticleOrBuilder- Returns:
- The answerRecord.
-
getAnswerRecordBytes
public com.google.protobuf.ByteString getAnswerRecordBytes()Output only. 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 interfaceSuggestion.ArticleOrBuilder- Returns:
- The bytes for answerRecord.
-
setAnswerRecord
Output only. 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
Output only. 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
Output only. 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.
-