Class SuggestFaqAnswersResponse (4.7.5)

public final class SuggestFaqAnswersResponse extends GeneratedMessageV3 implements SuggestFaqAnswersResponseOrBuilder

The request message for Participants.SuggestFaqAnswers.

Protobuf type google.cloud.dialogflow.v2.SuggestFaqAnswersResponse

Static Fields

CONTEXT_SIZE_FIELD_NUMBER

public static final int CONTEXT_SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

FAQ_ANSWERS_FIELD_NUMBER

public static final int FAQ_ANSWERS_FIELD_NUMBER
Field Value
TypeDescription
int

LATEST_MESSAGE_FIELD_NUMBER

public static final int LATEST_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SuggestFaqAnswersResponse getDefaultInstance()
Returns
TypeDescription
SuggestFaqAnswersResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SuggestFaqAnswersResponse.Builder newBuilder()
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

newBuilder(SuggestFaqAnswersResponse prototype)

public static SuggestFaqAnswersResponse.Builder newBuilder(SuggestFaqAnswersResponse prototype)
Parameter
NameDescription
prototypeSuggestFaqAnswersResponse
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

parseDelimitedFrom(InputStream input)

public static SuggestFaqAnswersResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SuggestFaqAnswersResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SuggestFaqAnswersResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SuggestFaqAnswersResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SuggestFaqAnswersResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SuggestFaqAnswersResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SuggestFaqAnswersResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SuggestFaqAnswersResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SuggestFaqAnswersResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SuggestFaqAnswersResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SuggestFaqAnswersResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SuggestFaqAnswersResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestFaqAnswersResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SuggestFaqAnswersResponse> parser()
Returns
TypeDescription
Parser<SuggestFaqAnswersResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContextSize()

public int getContextSize()

Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size field in the request if there aren't that many messages in the conversation.

int32 context_size = 3;

Returns
TypeDescription
int

The contextSize.

getDefaultInstanceForType()

public SuggestFaqAnswersResponse getDefaultInstanceForType()
Returns
TypeDescription
SuggestFaqAnswersResponse

getFaqAnswers(int index)

public FaqAnswer getFaqAnswers(int index)

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaqAnswer

getFaqAnswersCount()

public int getFaqAnswersCount()

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Returns
TypeDescription
int

getFaqAnswersList()

public List<FaqAnswer> getFaqAnswersList()

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Returns
TypeDescription
List<FaqAnswer>

getFaqAnswersOrBuilder(int index)

public FaqAnswerOrBuilder getFaqAnswersOrBuilder(int index)

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaqAnswerOrBuilder

getFaqAnswersOrBuilderList()

public List<? extends FaqAnswerOrBuilder> getFaqAnswersOrBuilderList()

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder>

getLatestMessage()

public String getLatestMessage()

The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2;

Returns
TypeDescription
String

The latestMessage.

getLatestMessageBytes()

public ByteString getLatestMessageBytes()

The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2;

Returns
TypeDescription
ByteString

The bytes for latestMessage.

getParserForType()

public Parser<SuggestFaqAnswersResponse> getParserForType()
Returns
TypeDescription
Parser<SuggestFaqAnswersResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SuggestFaqAnswersResponse.Builder newBuilderForType()
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SuggestFaqAnswersResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SuggestFaqAnswersResponse.Builder toBuilder()
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException