public static final class AssistAnswer.Builder extends com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder> implements AssistAnswerOrBuilder
AssistAnswer resource, main part of [AssistResponse][google.cloud.discoveryengine.v1.AssistResponse].Protobuf type
google.cloud.discoveryengine.v1.AssistAnswer| Modifier and Type | Method and Description |
|---|---|
AssistAnswer.Builder |
addAllAssistSkippedReasons(Iterable<? extends AssistAnswer.AssistSkippedReason> values)
Reasons for not answering the assist call.
|
AssistAnswer.Builder |
addAllAssistSkippedReasonsValue(Iterable<Integer> values)
Reasons for not answering the assist call.
|
AssistAnswer.Builder |
addAllReplies(Iterable<? extends AssistAnswer.Reply> values)
Replies of the assistant.
|
AssistAnswer.Builder |
addAssistSkippedReasons(AssistAnswer.AssistSkippedReason value)
Reasons for not answering the assist call.
|
AssistAnswer.Builder |
addAssistSkippedReasonsValue(int value)
Reasons for not answering the assist call.
|
AssistAnswer.Builder |
addReplies(AssistAnswer.Reply.Builder builderForValue)
Replies of the assistant.
|
AssistAnswer.Builder |
addReplies(AssistAnswer.Reply value)
Replies of the assistant.
|
AssistAnswer.Builder |
addReplies(int index,
AssistAnswer.Reply.Builder builderForValue)
Replies of the assistant.
|
AssistAnswer.Builder |
addReplies(int index,
AssistAnswer.Reply value)
Replies of the assistant.
|
AssistAnswer.Reply.Builder |
addRepliesBuilder()
Replies of the assistant.
|
AssistAnswer.Reply.Builder |
addRepliesBuilder(int index)
Replies of the assistant.
|
AssistAnswer |
build() |
AssistAnswer |
buildPartial() |
AssistAnswer.Builder |
clear() |
AssistAnswer.Builder |
clearAssistSkippedReasons()
Reasons for not answering the assist call.
|
AssistAnswer.Builder |
clearName()
Immutable.
|
AssistAnswer.Builder |
clearReplies()
Replies of the assistant.
|
AssistAnswer.Builder |
clearState()
State of the answer generation.
|
AssistAnswer.AssistSkippedReason |
getAssistSkippedReasons(int index)
Reasons for not answering the assist call.
|
int |
getAssistSkippedReasonsCount()
Reasons for not answering the assist call.
|
List<AssistAnswer.AssistSkippedReason> |
getAssistSkippedReasonsList()
Reasons for not answering the assist call.
|
int |
getAssistSkippedReasonsValue(int index)
Reasons for not answering the assist call.
|
List<Integer> |
getAssistSkippedReasonsValueList()
Reasons for not answering the assist call.
|
AssistAnswer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
AssistAnswer.Reply |
getReplies(int index)
Replies of the assistant.
|
AssistAnswer.Reply.Builder |
getRepliesBuilder(int index)
Replies of the assistant.
|
List<AssistAnswer.Reply.Builder> |
getRepliesBuilderList()
Replies of the assistant.
|
int |
getRepliesCount()
Replies of the assistant.
|
List<AssistAnswer.Reply> |
getRepliesList()
Replies of the assistant.
|
AssistAnswer.ReplyOrBuilder |
getRepliesOrBuilder(int index)
Replies of the assistant.
|
List<? extends AssistAnswer.ReplyOrBuilder> |
getRepliesOrBuilderList()
Replies of the assistant.
|
AssistAnswer.State |
getState()
State of the answer generation.
|
int |
getStateValue()
State of the answer generation.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AssistAnswer.Builder |
mergeFrom(AssistAnswer other) |
AssistAnswer.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AssistAnswer.Builder |
mergeFrom(com.google.protobuf.Message other) |
AssistAnswer.Builder |
removeReplies(int index)
Replies of the assistant.
|
AssistAnswer.Builder |
setAssistSkippedReasons(int index,
AssistAnswer.AssistSkippedReason value)
Reasons for not answering the assist call.
|
AssistAnswer.Builder |
setAssistSkippedReasonsValue(int index,
int value)
Reasons for not answering the assist call.
|
AssistAnswer.Builder |
setName(String value)
Immutable.
|
AssistAnswer.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Immutable.
|
AssistAnswer.Builder |
setReplies(int index,
AssistAnswer.Reply.Builder builderForValue)
Replies of the assistant.
|
AssistAnswer.Builder |
setReplies(int index,
AssistAnswer.Reply value)
Replies of the assistant.
|
AssistAnswer.Builder |
setState(AssistAnswer.State value)
State of the answer generation.
|
AssistAnswer.Builder |
setStateValue(int value)
State of the answer generation.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder>public AssistAnswer.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder>public AssistAnswer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AssistAnswer build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AssistAnswer buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AssistAnswer.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AssistAnswer.Builder>public AssistAnswer.Builder mergeFrom(AssistAnswer other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder>public AssistAnswer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AssistAnswer.Builder>IOExceptionpublic 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];getName in interface AssistAnswerOrBuilderpublic com.google.protobuf.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];getNameBytes in interface AssistAnswerOrBuilderpublic AssistAnswer.Builder setName(String value)
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];value - The name to set.public AssistAnswer.Builder clearName()
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];public AssistAnswer.Builder setNameBytes(com.google.protobuf.ByteString value)
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];value - The bytes for name to set.public int getStateValue()
State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;getStateValue in interface AssistAnswerOrBuilderpublic AssistAnswer.Builder setStateValue(int value)
State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;value - The enum numeric value on the wire for state to set.public AssistAnswer.State getState()
State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;getState in interface AssistAnswerOrBuilderpublic AssistAnswer.Builder setState(AssistAnswer.State value)
State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;value - The state to set.public AssistAnswer.Builder clearState()
State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;public List<AssistAnswer.Reply> getRepliesList()
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;getRepliesList in interface AssistAnswerOrBuilderpublic int getRepliesCount()
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;getRepliesCount in interface AssistAnswerOrBuilderpublic AssistAnswer.Reply getReplies(int index)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;getReplies in interface AssistAnswerOrBuilderpublic AssistAnswer.Builder setReplies(int index, AssistAnswer.Reply value)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Builder setReplies(int index, AssistAnswer.Reply.Builder builderForValue)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Builder addReplies(AssistAnswer.Reply value)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Builder addReplies(int index, AssistAnswer.Reply value)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Builder addReplies(AssistAnswer.Reply.Builder builderForValue)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Builder addReplies(int index, AssistAnswer.Reply.Builder builderForValue)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Builder addAllReplies(Iterable<? extends AssistAnswer.Reply> values)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Builder clearReplies()
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Builder removeReplies(int index)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Reply.Builder getRepliesBuilder(int index)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.ReplyOrBuilder getRepliesOrBuilder(int index)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;getRepliesOrBuilder in interface AssistAnswerOrBuilderpublic List<? extends AssistAnswer.ReplyOrBuilder> getRepliesOrBuilderList()
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;getRepliesOrBuilderList in interface AssistAnswerOrBuilderpublic AssistAnswer.Reply.Builder addRepliesBuilder()
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public AssistAnswer.Reply.Builder addRepliesBuilder(int index)
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public List<AssistAnswer.Reply.Builder> getRepliesBuilderList()
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;public List<AssistAnswer.AssistSkippedReason> getAssistSkippedReasonsList()
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
getAssistSkippedReasonsList in interface AssistAnswerOrBuilderpublic int getAssistSkippedReasonsCount()
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
getAssistSkippedReasonsCount in interface AssistAnswerOrBuilderpublic AssistAnswer.AssistSkippedReason getAssistSkippedReasons(int index)
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
getAssistSkippedReasons in interface AssistAnswerOrBuilderindex - The index of the element to return.public AssistAnswer.Builder setAssistSkippedReasons(int index, AssistAnswer.AssistSkippedReason value)
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
index - The index to set the value at.value - The assistSkippedReasons to set.public AssistAnswer.Builder addAssistSkippedReasons(AssistAnswer.AssistSkippedReason value)
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
value - The assistSkippedReasons to add.public AssistAnswer.Builder addAllAssistSkippedReasons(Iterable<? extends AssistAnswer.AssistSkippedReason> values)
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
values - The assistSkippedReasons to add.public AssistAnswer.Builder clearAssistSkippedReasons()
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
public List<Integer> getAssistSkippedReasonsValueList()
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
getAssistSkippedReasonsValueList in interface AssistAnswerOrBuilderpublic int getAssistSkippedReasonsValue(int index)
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
getAssistSkippedReasonsValue in interface AssistAnswerOrBuilderindex - The index of the value to return.public AssistAnswer.Builder setAssistSkippedReasonsValue(int index, int value)
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
index - The index to set the value at.value - The enum numeric value on the wire for assistSkippedReasons to set.public AssistAnswer.Builder addAssistSkippedReasonsValue(int value)
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
value - The enum numeric value on the wire for assistSkippedReasons to add.public AssistAnswer.Builder addAllAssistSkippedReasonsValue(Iterable<Integer> values)
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
values - The enum numeric values on the wire for assistSkippedReasons to add.Copyright © 2026 Google LLC. All rights reserved.