- 4.58.0 (latest)
- 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 ArticleAnswer.Builder extends GeneratedMessageV3.Builder<ArticleAnswer.Builder> implements ArticleAnswerOrBuilder
Represents article answer.
Protobuf type google.cloud.dialogflow.v2beta1.ArticleAnswer
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ArticleAnswer.BuilderImplements
ArticleAnswerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllSnippets(Iterable<String> values)
public ArticleAnswer.Builder addAllSnippets(Iterable<String> values)
Output only. Article snippets.
repeated string snippets = 3;
Name | Description |
values | Iterable<String> The snippets to add. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ArticleAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ArticleAnswer.Builder |
addSnippets(String value)
public ArticleAnswer.Builder addSnippets(String value)
Output only. Article snippets.
repeated string snippets = 3;
Name | Description |
value | String The snippets to add. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
addSnippetsBytes(ByteString value)
public ArticleAnswer.Builder addSnippetsBytes(ByteString value)
Output only. Article snippets.
repeated string snippets = 3;
Name | Description |
value | ByteString The bytes of the snippets to add. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
build()
public ArticleAnswer build()
Type | Description |
ArticleAnswer |
buildPartial()
public ArticleAnswer buildPartial()
Type | Description |
ArticleAnswer |
clear()
public ArticleAnswer.Builder clear()
Type | Description |
ArticleAnswer.Builder |
clearAnswerRecord()
public ArticleAnswer.Builder clearAnswerRecord()
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ArticleAnswer.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ArticleAnswer.Builder |
clearMetadata()
public ArticleAnswer.Builder clearMetadata()
Type | Description |
ArticleAnswer.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ArticleAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ArticleAnswer.Builder |
clearSnippets()
public ArticleAnswer.Builder clearSnippets()
Output only. Article snippets.
repeated string snippets = 3;
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
clearTitle()
public ArticleAnswer.Builder clearTitle()
The article title.
string title = 1;
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
clearUri()
public ArticleAnswer.Builder clearUri()
The article URI.
string uri = 2;
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
clone()
public ArticleAnswer.Builder clone()
Type | Description |
ArticleAnswer.Builder |
containsMetadata(String key)
public boolean containsMetadata(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
Name | Description |
key | String |
Type | Description |
boolean |
getAnswerRecord()
public String getAnswerRecord()
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
Type | Description |
String | The answerRecord. |
getAnswerRecordBytes()
public 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;
Type | Description |
ByteString | The bytes for answerRecord. |
getDefaultInstanceForType()
public ArticleAnswer getDefaultInstanceForType()
Type | Description |
ArticleAnswer |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMetadata()
public Map<String,String> getMetadata()
Use #getMetadataMap() instead.
Type | Description |
Map<String,String> |
getMetadataCount()
public int getMetadataCount()
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
Type | Description |
int |
getMetadataMap()
public Map<String,String> getMetadataMap()
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
Type | Description |
Map<String,String> |
getMetadataOrDefault(String key, String defaultValue)
public String getMetadataOrDefault(String key, String defaultValue)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getMetadataOrThrow(String key)
public String getMetadataOrThrow(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
Name | Description |
key | String |
Type | Description |
String |
getMutableMetadata()
public Map<String,String> getMutableMetadata()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getSnippets(int index)
public String getSnippets(int index)
Output only. Article snippets.
repeated string snippets = 3;
Name | Description |
index | int The index of the element to return. |
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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the snippets at the given index. |
getSnippetsCount()
public int getSnippetsCount()
Output only. Article snippets.
repeated string snippets = 3;
Type | Description |
int | The count of snippets. |
getSnippetsList()
public ProtocolStringList getSnippetsList()
Output only. Article snippets.
repeated string snippets = 3;
Type | Description |
ProtocolStringList | A list containing the snippets. |
getTitle()
public String getTitle()
The article title.
string title = 1;
Type | Description |
String | The title. |
getTitleBytes()
public ByteString getTitleBytes()
The article title.
string title = 1;
Type | Description |
ByteString | The bytes for title. |
getUri()
public String getUri()
The article URI.
string uri = 2;
Type | Description |
String | The uri. |
getUriBytes()
public ByteString getUriBytes()
The article URI.
string uri = 2;
Type | Description |
ByteString | The bytes for uri. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ArticleAnswer other)
public ArticleAnswer.Builder mergeFrom(ArticleAnswer other)
Name | Description |
other | ArticleAnswer |
Type | Description |
ArticleAnswer.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ArticleAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ArticleAnswer.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ArticleAnswer.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ArticleAnswer.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ArticleAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ArticleAnswer.Builder |
putAllMetadata(Map<String,String> values)
public ArticleAnswer.Builder putAllMetadata(Map<String,String> values)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
Name | Description |
values | Map<String,String> |
Type | Description |
ArticleAnswer.Builder |
putMetadata(String key, String value)
public ArticleAnswer.Builder putMetadata(String key, String value)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
Name | Description |
key | String |
value | String |
Type | Description |
ArticleAnswer.Builder |
removeMetadata(String key)
public ArticleAnswer.Builder removeMetadata(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
Name | Description |
key | String |
Type | Description |
ArticleAnswer.Builder |
setAnswerRecord(String value)
public ArticleAnswer.Builder setAnswerRecord(String value)
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
Name | Description |
value | String The answerRecord to set. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
setAnswerRecordBytes(ByteString value)
public ArticleAnswer.Builder setAnswerRecordBytes(ByteString value)
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
Name | Description |
value | ByteString The bytes for answerRecord to set. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ArticleAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ArticleAnswer.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ArticleAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ArticleAnswer.Builder |
setSnippets(int index, String value)
public ArticleAnswer.Builder setSnippets(int index, String value)
Output only. Article snippets.
repeated string snippets = 3;
Name | Description |
index | int The index to set the value at. |
value | String The snippets to set. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
setTitle(String value)
public ArticleAnswer.Builder setTitle(String value)
The article title.
string title = 1;
Name | Description |
value | String The title to set. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
setTitleBytes(ByteString value)
public ArticleAnswer.Builder setTitleBytes(ByteString value)
The article title.
string title = 1;
Name | Description |
value | ByteString The bytes for title to set. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ArticleAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ArticleAnswer.Builder |
setUri(String value)
public ArticleAnswer.Builder setUri(String value)
The article URI.
string uri = 2;
Name | Description |
value | String The uri to set. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |
setUriBytes(ByteString value)
public ArticleAnswer.Builder setUriBytes(ByteString value)
The article URI.
string uri = 2;
Name | Description |
value | ByteString The bytes for uri to set. |
Type | Description |
ArticleAnswer.Builder | This builder for chaining. |