Send feedback
Class AssistAnswer (0.66.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public final class AssistAnswer extends GeneratedMessageV3 implements AssistAnswerOrBuilder
AssistAnswer resource, main part of
AssistResponse .
Protobuf type google.cloud.discoveryengine.v1.AssistAnswer
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static AssistAnswer . Builder newBuilder ()
newBuilder(AssistAnswer prototype)
public static AssistAnswer . Builder newBuilder ( AssistAnswer prototype )
public static AssistAnswer parseDelimitedFrom ( InputStream input )
public static AssistAnswer parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static AssistAnswer parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AssistAnswer parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static AssistAnswer parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AssistAnswer parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static AssistAnswer parseFrom ( CodedInputStream input )
public static AssistAnswer parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static AssistAnswer parseFrom ( InputStream input )
public static AssistAnswer parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static AssistAnswer parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AssistAnswer parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<AssistAnswer> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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.
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;
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 ()
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 ()
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
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;
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
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;
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()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public AssistAnswer . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AssistAnswer . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public AssistAnswer . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-03 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-03 UTC."],[],[]]