Class KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder (4.58.0)

public static final class KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder extends GeneratedMessageV3.Builder<KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder> implements KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder

Details about source of Generative answer.

Protobuf type google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

Static Methods

getDescriptor()

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

Methods

addAllSnippets(Iterable<? extends KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet> values)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder addAllSnippets(Iterable<? extends KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet> values)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet>
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides

addSnippets(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet value)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder addSnippets(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet value)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameter
Name Description
value KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

addSnippets(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder builderForValue)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder addSnippets(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder builderForValue)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameter
Name Description
builderForValue KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

addSnippets(int index, KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet value)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder addSnippets(int index, KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet value)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameters
Name Description
index int
value KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

addSnippets(int index, KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder builderForValue)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder addSnippets(int index, KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder builderForValue)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameters
Name Description
index int
builderForValue KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

addSnippetsBuilder()

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder addSnippetsBuilder()

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder

addSnippetsBuilder(int index)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder addSnippetsBuilder(int index)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder

build()

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource build()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource

buildPartial()

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource buildPartial()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource

clear()

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder clear()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides

clearSnippets()

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder clearSnippets()

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

clone()

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder clone()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides

getDefaultInstanceForType()

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource getDefaultInstanceForType()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource

getDescriptorForType()

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

getSnippets(int index)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet getSnippets(int index)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet

getSnippetsBuilder(int index)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder getSnippetsBuilder(int index)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder

getSnippetsBuilderList()

public List<KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder> getSnippetsBuilderList()

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Returns
Type Description
List<Builder>

getSnippetsCount()

public int getSnippetsCount()

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Returns
Type Description
int

getSnippetsList()

public List<KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet> getSnippetsList()

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Returns
Type Description
List<Snippet>

getSnippetsOrBuilder(int index)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.SnippetOrBuilder getSnippetsOrBuilder(int index)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.SnippetOrBuilder

getSnippetsOrBuilderList()

public List<? extends KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.SnippetOrBuilder> getSnippetsOrBuilderList()

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.SnippetOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource other)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder mergeFrom(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource other)
Parameter
Name Description
other KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides

removeSnippets(int index)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder removeSnippets(int index)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides

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

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

setSnippets(int index, KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet value)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder setSnippets(int index, KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet value)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameters
Name Description
index int
value KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

setSnippets(int index, KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder builderForValue)

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder setSnippets(int index, KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder builderForValue)

All snippets used for this Generative Prediction, with their source URI and data.

repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

Parameters
Name Description
index int
builderForValue KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.Builder
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides