Class SearchKnowledgeAnswer.AnswerSource.Builder (4.35.0)

public static final class SearchKnowledgeAnswer.AnswerSource.Builder extends GeneratedMessageV3.Builder<SearchKnowledgeAnswer.AnswerSource.Builder> implements SearchKnowledgeAnswer.AnswerSourceOrBuilder

The sources of the answers.

Protobuf type google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchKnowledgeAnswer.AnswerSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

build()

public SearchKnowledgeAnswer.AnswerSource build()
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource

buildPartial()

public SearchKnowledgeAnswer.AnswerSource buildPartial()
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource

clear()

public SearchKnowledgeAnswer.AnswerSource.Builder clear()
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchKnowledgeAnswer.AnswerSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchKnowledgeAnswer.AnswerSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

clearSnippet()

public SearchKnowledgeAnswer.AnswerSource.Builder clearSnippet()

The relevant snippet of the article.

string snippet = 3;

Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

This builder for chaining.

clearTitle()

public SearchKnowledgeAnswer.AnswerSource.Builder clearTitle()

The title of the article.

string title = 1;

Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

This builder for chaining.

clearUri()

public SearchKnowledgeAnswer.AnswerSource.Builder clearUri()

The URI of the article.

string uri = 2;

Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

This builder for chaining.

clone()

public SearchKnowledgeAnswer.AnswerSource.Builder clone()
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

getDefaultInstanceForType()

public SearchKnowledgeAnswer.AnswerSource getDefaultInstanceForType()
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSnippet()

public String getSnippet()

The relevant snippet of the article.

string snippet = 3;

Returns
Type Description
String

The snippet.

getSnippetBytes()

public ByteString getSnippetBytes()

The relevant snippet of the article.

string snippet = 3;

Returns
Type Description
ByteString

The bytes for snippet.

getTitle()

public String getTitle()

The title of the article.

string title = 1;

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

The title of the article.

string title = 1;

Returns
Type Description
ByteString

The bytes for title.

getUri()

public String getUri()

The URI of the article.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The URI of the article.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchKnowledgeAnswer.AnswerSource other)

public SearchKnowledgeAnswer.AnswerSource.Builder mergeFrom(SearchKnowledgeAnswer.AnswerSource other)
Parameter
Name Description
other SearchKnowledgeAnswer.AnswerSource
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchKnowledgeAnswer.AnswerSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchKnowledgeAnswer.AnswerSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchKnowledgeAnswer.AnswerSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SearchKnowledgeAnswer.AnswerSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchKnowledgeAnswer.AnswerSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

setSnippet(String value)

public SearchKnowledgeAnswer.AnswerSource.Builder setSnippet(String value)

The relevant snippet of the article.

string snippet = 3;

Parameter
Name Description
value String

The snippet to set.

Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

This builder for chaining.

setSnippetBytes(ByteString value)

public SearchKnowledgeAnswer.AnswerSource.Builder setSnippetBytes(ByteString value)

The relevant snippet of the article.

string snippet = 3;

Parameter
Name Description
value ByteString

The bytes for snippet to set.

Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

This builder for chaining.

setTitle(String value)

public SearchKnowledgeAnswer.AnswerSource.Builder setTitle(String value)

The title of the article.

string title = 1;

Parameter
Name Description
value String

The title to set.

Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public SearchKnowledgeAnswer.AnswerSource.Builder setTitleBytes(ByteString value)

The title of the article.

string title = 1;

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchKnowledgeAnswer.AnswerSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder
Overrides

setUri(String value)

public SearchKnowledgeAnswer.AnswerSource.Builder setUri(String value)

The URI of the article.

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

This builder for chaining.

setUriBytes(ByteString value)

public SearchKnowledgeAnswer.AnswerSource.Builder setUriBytes(ByteString value)

The URI of the article.

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
SearchKnowledgeAnswer.AnswerSource.Builder

This builder for chaining.