Class Suggestion.Article.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Suggestion.Article.Builder> implements Suggestion.ArticleOrBuilder
Represents suggested article.
Protobuf typegoogle.cloud.dialogflow.v2beta1.Suggestion.Article
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Suggestion.Article.BuilderaddAllSnippets(Iterable<String> values)Output only.Suggestion.Article.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Suggestion.Article.BuilderaddSnippets(String value)Output only.Suggestion.Article.BuilderaddSnippetsBytes(com.google.protobuf.ByteString value)Output only.Suggestion.Articlebuild()Suggestion.ArticlebuildPartial()Suggestion.Article.Builderclear()Suggestion.Article.BuilderclearAnswerRecord()Output only.Suggestion.Article.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Suggestion.Article.BuilderclearMetadata()Suggestion.Article.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Suggestion.Article.BuilderclearSnippets()Output only.Suggestion.Article.BuilderclearTitle()Output only.Suggestion.Article.BuilderclearUri()Output only.Suggestion.Article.Builderclone()booleancontainsMetadata(String key)Output only.StringgetAnswerRecord()Output only.com.google.protobuf.ByteStringgetAnswerRecordBytes()Output only.Suggestion.ArticlegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMetadata()Deprecated.intgetMetadataCount()Output only.Map<String,String>getMetadataMap()Output only.StringgetMetadataOrDefault(String key, String defaultValue)Output only.StringgetMetadataOrThrow(String key)Output only.Map<String,String>getMutableMetadata()Deprecated.StringgetSnippets(int index)Output only.com.google.protobuf.ByteStringgetSnippetsBytes(int index)Output only.intgetSnippetsCount()Output only.com.google.protobuf.ProtocolStringListgetSnippetsList()Output only.StringgetTitle()Output only.com.google.protobuf.ByteStringgetTitleBytes()Output only.StringgetUri()Output only.com.google.protobuf.ByteStringgetUriBytes()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Suggestion.Article.BuildermergeFrom(Suggestion.Article other)Suggestion.Article.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Suggestion.Article.BuildermergeFrom(com.google.protobuf.Message other)Suggestion.Article.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Suggestion.Article.BuilderputAllMetadata(Map<String,String> values)Output only.Suggestion.Article.BuilderputMetadata(String key, String value)Output only.Suggestion.Article.BuilderremoveMetadata(String key)Output only.Suggestion.Article.BuildersetAnswerRecord(String value)Output only.Suggestion.Article.BuildersetAnswerRecordBytes(com.google.protobuf.ByteString value)Output only.Suggestion.Article.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Suggestion.Article.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Suggestion.Article.BuildersetSnippets(int index, String value)Output only.Suggestion.Article.BuildersetTitle(String value)Output only.Suggestion.Article.BuildersetTitleBytes(com.google.protobuf.ByteString value)Output only.Suggestion.Article.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Suggestion.Article.BuildersetUri(String value)Output only.Suggestion.Article.BuildersetUriBytes(com.google.protobuf.ByteString value)Output only.-
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<Suggestion.Article.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
-
getDefaultInstanceForType
public Suggestion.Article getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Suggestion.Article build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Suggestion.Article buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Suggestion.Article.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<Suggestion.Article.Builder>
-
setField
public Suggestion.Article.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<Suggestion.Article.Builder>
-
clearField
public Suggestion.Article.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
-
clearOneof
public Suggestion.Article.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
-
setRepeatedField
public Suggestion.Article.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<Suggestion.Article.Builder>
-
addRepeatedField
public Suggestion.Article.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<Suggestion.Article.Builder>
-
mergeFrom
public Suggestion.Article.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Suggestion.Article.Builder>
-
mergeFrom
public Suggestion.Article.Builder mergeFrom(Suggestion.Article other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public Suggestion.Article.Builder setTitle(String value)
Output only. The article title.
string title = 1;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
public Suggestion.Article.Builder clearTitle()
Output only. The article title.
string title = 1;- Returns:
- This builder for chaining.
-
setTitleBytes
public Suggestion.Article.Builder setTitleBytes(com.google.protobuf.ByteString value)
Output only. The article title.
string title = 1;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getUri
public String 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
public Suggestion.Article.Builder setUri(String value)
Output only. The article URI.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
public Suggestion.Article.Builder clearUri()
Output only. The article URI.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
public Suggestion.Article.Builder setUriBytes(com.google.protobuf.ByteString value)
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
public String getSnippets(int index)
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
public Suggestion.Article.Builder setSnippets(int index, String value)
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
public Suggestion.Article.Builder addSnippets(String value)
Output only. Article snippets.
repeated string snippets = 3;- Parameters:
value- The snippets to add.- Returns:
- This builder for chaining.
-
addAllSnippets
public Suggestion.Article.Builder addAllSnippets(Iterable<String> values)
Output only. Article snippets.
repeated string snippets = 3;- Parameters:
values- The snippets to add.- Returns:
- This builder for chaining.
-
clearSnippets
public Suggestion.Article.Builder clearSnippets()
Output only. Article snippets.
repeated string snippets = 3;- Returns:
- This builder for chaining.
-
addSnippetsBytes
public Suggestion.Article.Builder addSnippetsBytes(com.google.protobuf.ByteString value)
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
public boolean containsMetadata(String key)
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 public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSuggestion.ArticleOrBuilder
-
getMetadataMap
public Map<String,String> 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
public String getMetadataOrDefault(String key, String defaultValue)
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
public String getMetadataOrThrow(String key)
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
public Suggestion.Article.Builder clearMetadata()
-
removeMetadata
public Suggestion.Article.Builder removeMetadata(String key)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
-
getMutableMetadata
@Deprecated public Map<String,String> getMutableMetadata()
Deprecated.Use alternate mutation accessors instead.
-
putMetadata
public Suggestion.Article.Builder putMetadata(String key, String value)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
-
putAllMetadata
public Suggestion.Article.Builder putAllMetadata(Map<String,String> values)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
-
getAnswerRecord
public String 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
public Suggestion.Article.Builder setAnswerRecord(String value)
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
public Suggestion.Article.Builder 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
public Suggestion.Article.Builder setAnswerRecordBytes(com.google.protobuf.ByteString value)
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.
-
setUnknownFields
public final Suggestion.Article.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
-
mergeUnknownFields
public final Suggestion.Article.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Article.Builder>
-
-