Class AssistAnswer (0.66.0)

public final class AssistAnswer extends GeneratedMessageV3 implements AssistAnswerOrBuilder

AssistAnswer resource, main part of AssistResponse.

Protobuf type google.cloud.discoveryengine.v1.AssistAnswer

Static Fields

ASSIST_SKIPPED_REASONS_FIELD_NUMBER

public static final int ASSIST_SKIPPED_REASONS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

REPLIES_FIELD_NUMBER

public static final int REPLIES_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AssistAnswer getDefaultInstance()
Returns
Type Description
AssistAnswer

getDescriptor()

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

newBuilder()

public static AssistAnswer.Builder newBuilder()
Returns
Type Description
AssistAnswer.Builder

newBuilder(AssistAnswer prototype)

public static AssistAnswer.Builder newBuilder(AssistAnswer prototype)
Parameter
Name Description
prototype AssistAnswer
Returns
Type Description
AssistAnswer.Builder

parseDelimitedFrom(InputStream input)

public static AssistAnswer parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssistAnswer
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssistAnswer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistAnswer
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AssistAnswer parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AssistAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AssistAnswer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AssistAnswer parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AssistAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AssistAnswer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AssistAnswer parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AssistAnswer
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AssistAnswer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistAnswer
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AssistAnswer parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssistAnswer
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssistAnswer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistAnswer
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AssistAnswer parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AssistAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AssistAnswer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AssistAnswer> parser()
Returns
Type Description
Parser<AssistAnswer>

Methods

equals(Object obj)

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

getAssistSkippedReasons(int index)

public AssistAnswer.AssistSkippedReason getAssistSkippedReasons(int index)

Reasons for not answering the assist call.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
AssistAnswer.AssistSkippedReason

The assistSkippedReasons at the given index.

getAssistSkippedReasonsCount()

public int getAssistSkippedReasonsCount()

Reasons for not answering the assist call.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;

Returns
Type Description
int

The count of assistSkippedReasons.

getAssistSkippedReasonsList()

public List<AssistAnswer.AssistSkippedReason> getAssistSkippedReasonsList()

Reasons for not answering the assist call.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;

Returns
Type Description
List<AssistSkippedReason>

A list containing the assistSkippedReasons.

getAssistSkippedReasonsValue(int index)

public int getAssistSkippedReasonsValue(int index)

Reasons for not answering the assist call.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of assistSkippedReasons at the given index.

getAssistSkippedReasonsValueList()

public List<Integer> getAssistSkippedReasonsValueList()

Reasons for not answering the assist call.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for assistSkippedReasons.

getDefaultInstanceForType()

public AssistAnswer getDefaultInstanceForType()
Returns
Type Description
AssistAnswer

getName()

public String getName()

Immutable. Resource name of the AssistAnswer. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. Resource name of the AssistAnswer. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<AssistAnswer> getParserForType()
Returns
Type Description
Parser<AssistAnswer>
Overrides

getReplies(int index)

public AssistAnswer.Reply getReplies(int index)

Replies of the assistant.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;

Parameter
Name Description
index int
Returns
Type Description
AssistAnswer.Reply

getRepliesCount()

public int getRepliesCount()

Replies of the assistant.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;

Returns
Type Description
int

getRepliesList()

public List<AssistAnswer.Reply> getRepliesList()

Replies of the assistant.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;

Returns
Type Description
List<Reply>

getRepliesOrBuilder(int index)

public AssistAnswer.ReplyOrBuilder getRepliesOrBuilder(int index)

Replies of the assistant.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;

Parameter
Name Description
index int
Returns
Type Description
AssistAnswer.ReplyOrBuilder

getRepliesOrBuilderList()

public List<? extends AssistAnswer.ReplyOrBuilder> getRepliesOrBuilderList()

Replies of the assistant.

repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.AssistAnswer.ReplyOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public AssistAnswer.State getState()

State of the answer generation.

.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;

Returns
Type Description
AssistAnswer.State

The state.

getStateValue()

public int getStateValue()

State of the answer generation.

.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

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 AssistAnswer.Builder newBuilderForType()
Returns
Type Description
AssistAnswer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AssistAnswer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AssistAnswer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AssistAnswer.Builder toBuilder()
Returns
Type Description
AssistAnswer.Builder

writeTo(CodedOutputStream output)

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