public final class AssistAnswer extends GeneratedMessage implements AssistAnswerOrBuilder
AssistAnswer resource, main part of
AssistResponse.
Protobuf type google.cloud.discoveryengine.v1.AssistAnswer
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ASSIST_SKIPPED_REASONS_FIELD_NUMBER
public static final int ASSIST_SKIPPED_REASONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CONNECTOR_DISPLAY_NAMES_FIELD_NUMBER
public static final int CONNECTOR_DISPLAY_NAMES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CUSTOMER_POLICY_ENFORCEMENT_RESULT_FIELD_NUMBER
public static final int CUSTOMER_POLICY_ENFORCEMENT_RESULT_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
containsConnectorDisplayNames(String key)
public boolean containsConnectorDisplayNames(String key)
Output only. Maps an internal connector agent name (the machine identifier
embedded in tool names, e.g. custom_mcp_<fingerprint>_agent) to the
connector's human-readable display name. Populated at serving time for
custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
tool-call chip) can show the connector name instead of its internal
identifier. Empty when there are no such connectors.
map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
key |
String
|
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.
|
getConnectorDisplayNames() (deprecated)
public Map<String,String> getConnectorDisplayNames()
getConnectorDisplayNamesCount()
public int getConnectorDisplayNamesCount()
Output only. Maps an internal connector agent name (the machine identifier
embedded in tool names, e.g. custom_mcp_<fingerprint>_agent) to the
connector's human-readable display name. Populated at serving time for
custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
tool-call chip) can show the connector name instead of its internal
identifier. Empty when there are no such connectors.
map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
getConnectorDisplayNamesMap()
public Map<String,String> getConnectorDisplayNamesMap()
Output only. Maps an internal connector agent name (the machine identifier
embedded in tool names, e.g. custom_mcp_<fingerprint>_agent) to the
connector's human-readable display name. Populated at serving time for
custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
tool-call chip) can show the connector name instead of its internal
identifier. Empty when there are no such connectors.
map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
getConnectorDisplayNamesOrDefault(String key, String defaultValue)
public String getConnectorDisplayNamesOrDefault(String key, String defaultValue)
Output only. Maps an internal connector agent name (the machine identifier
embedded in tool names, e.g. custom_mcp_<fingerprint>_agent) to the
connector's human-readable display name. Populated at serving time for
custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
tool-call chip) can show the connector name instead of its internal
identifier. Empty when there are no such connectors.
map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
|
getConnectorDisplayNamesOrThrow(String key)
public String getConnectorDisplayNamesOrThrow(String key)
Output only. Maps an internal connector agent name (the machine identifier
embedded in tool names, e.g. custom_mcp_<fingerprint>_agent) to the
connector's human-readable display name. Populated at serving time for
custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
tool-call chip) can show the connector name instead of its internal
identifier. Empty when there are no such connectors.
map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
|
getCustomerPolicyEnforcementResult()
public AssistAnswer.CustomerPolicyEnforcementResult getCustomerPolicyEnforcementResult()
Optional. The field contains information about the various policy checks'
results like the banned phrases or the Model Armor checks. This field is
populated only if the assist call was skipped due to a policy violation.
.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL];
getCustomerPolicyEnforcementResultOrBuilder()
public AssistAnswer.CustomerPolicyEnforcementResultOrBuilder getCustomerPolicyEnforcementResultOrBuilder()
Optional. The field contains information about the various policy checks'
results like the banned phrases or the Model Armor checks. This field is
populated only if the assist call was skipped due to a policy violation.
.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public AssistAnswer getDefaultInstanceForType()
getName()
Immutable. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Immutable. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER];
| 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.
|
hasCustomerPolicyEnforcementResult()
public boolean hasCustomerPolicyEnforcementResult()
Optional. The field contains information about the various policy checks'
results like the banned phrases or the Model Armor checks. This field is
populated only if the assist call was skipped due to a policy violation.
.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the customerPolicyEnforcementResult field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AssistAnswer.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AssistAnswer.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public AssistAnswer.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides