Class KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource (4.61.0)

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

Details about source of Generative answer.

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

Inheritance

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

Static Fields

SNIPPETS_FIELD_NUMBER

public static final int SNIPPETS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource getDefaultInstance()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource

getDescriptor()

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

newBuilder()

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder newBuilder()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

newBuilder(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource prototype)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder newBuilder(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource prototype)
Parameter
Name Description
prototype KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

parseDelimitedFrom(InputStream input)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource> parser()
Returns
Type Description
Parser<GenerativeSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource> getParserForType()
Returns
Type Description
Parser<GenerativeSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

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

getSnippetsCount()

public int getSnippetsCount()

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

repeated .google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1;

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

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder newBuilderForType()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder toBuilder()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException