- 4.82.0 (latest)
- 4.81.0
- 4.80.0
- 4.79.0
- 4.78.0
- 4.76.0
- 4.74.0
- 4.73.0
- 4.70.0
- 4.69.0
- 4.68.0
- 4.66.0
- 4.65.0
- 4.64.0
- 4.63.0
- 4.62.0
- 4.61.0
- 4.60.0
- 4.59.0
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
public static final class Suggestion.Article.Builder extends GeneratedMessageV3.Builder<Suggestion.Article.Builder> implements Suggestion.ArticleOrBuilderRepresents suggested article.
Protobuf type google.cloud.dialogflow.v2beta1.Suggestion.Article
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Suggestion.Article.BuilderImplements
Suggestion.ArticleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSnippets(Iterable<String> values)
public Suggestion.Article.Builder addAllSnippets(Iterable<String> values)Output only. Article snippets.
repeated string snippets = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The snippets to add. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Suggestion.Article.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
addSnippets(String value)
public Suggestion.Article.Builder addSnippets(String value)Output only. Article snippets.
repeated string snippets = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe snippets to add. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
addSnippetsBytes(ByteString value)
public Suggestion.Article.Builder addSnippetsBytes(ByteString value)Output only. Article snippets.
repeated string snippets = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the snippets to add. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
build()
public Suggestion.Article build()| Returns | |
|---|---|
| Type | Description |
Suggestion.Article |
|
buildPartial()
public Suggestion.Article buildPartial()| Returns | |
|---|---|
| Type | Description |
Suggestion.Article |
|
clear()
public Suggestion.Article.Builder clear()| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
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 | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Suggestion.Article.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
clearMetadata()
public Suggestion.Article.Builder clearMetadata()| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public Suggestion.Article.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
clearSnippets()
public Suggestion.Article.Builder clearSnippets()Output only. Article snippets.
repeated string snippets = 3;
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
clearTitle()
public Suggestion.Article.Builder clearTitle()Output only. The article title.
string title = 1;
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
clearUri()
public Suggestion.Article.Builder clearUri()Output only. The article URI.
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
clone()
public Suggestion.Article.Builder clone()| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
containsMetadata(String key)
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;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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;
| Returns | |
|---|---|
| Type | Description |
String |
The answerRecord. |
getAnswerRecordBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for answerRecord. |
getDefaultInstanceForType()
public Suggestion.Article getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Suggestion.Article |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMetadata()
public Map<String,String> getMetadata()Use #getMetadataMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMetadataCount()
public int getMetadataCount()Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
| Returns | |
|---|---|
| Type | Description |
int |
|
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;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMetadataOrDefault(String key, String defaultValue)
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;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMetadataOrThrow(String key)
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;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableMetadata()
public Map<String,String> getMutableMetadata()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getSnippets(int index)
public String getSnippets(int index)Output only. Article snippets.
repeated string snippets = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The snippets at the given index. |
getSnippetsBytes(int index)
public ByteString getSnippetsBytes(int index)Output only. Article snippets.
repeated string snippets = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the snippets at the given index. |
getSnippetsCount()
public int getSnippetsCount()Output only. Article snippets.
repeated string snippets = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The count of snippets. |
getSnippetsList()
public ProtocolStringList getSnippetsList()Output only. Article snippets.
repeated string snippets = 3;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the snippets. |
getTitle()
public String getTitle()Output only. The article title.
string title = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The title. |
getTitleBytes()
public ByteString getTitleBytes()Output only. The article title.
string title = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for title. |
getUri()
public String getUri()Output only. The article URI.
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
public ByteString getUriBytes()Output only. The article URI.
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapField(int number)
protected MapField internalGetMapField(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
MapField |
|
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
MapField |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Suggestion.Article other)
public Suggestion.Article.Builder mergeFrom(Suggestion.Article other)| Parameter | |
|---|---|
| Name | Description |
other |
Suggestion.Article |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Suggestion.Article.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Suggestion.Article.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Suggestion.Article.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
putAllMetadata(Map<String,String> values)
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;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
putMetadata(String key, String value)
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;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
removeMetadata(String key)
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;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
setAnswerRecord(String value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe answerRecord to set. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
setAnswerRecordBytes(ByteString value)
public Suggestion.Article.Builder setAnswerRecordBytes(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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for answerRecord to set. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Suggestion.Article.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Suggestion.Article.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
setSnippets(int index, String value)
public Suggestion.Article.Builder setSnippets(int index, String value)Output only. Article snippets.
repeated string snippets = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe snippets to set. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
setTitle(String value)
public Suggestion.Article.Builder setTitle(String value)Output only. The article title.
string title = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe title to set. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
setTitleBytes(ByteString value)
public Suggestion.Article.Builder setTitleBytes(ByteString value)Output only. The article title.
string title = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for title to set. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Suggestion.Article.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
|
setUri(String value)
public Suggestion.Article.Builder setUri(String value)Output only. The article URI.
string uri = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uri to set. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public Suggestion.Article.Builder setUriBytes(ByteString value)Output only. The article URI.
string uri = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
Suggestion.Article.Builder |
This builder for chaining. |