public interface AssistAnswerOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAssistSkippedReasons(int index)
public abstract AssistAnswer.AssistSkippedReason getAssistSkippedReasons(int index)Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.AssistSkippedReason |
The assistSkippedReasons at the given index. |
getAssistSkippedReasonsCount()
public abstract int getAssistSkippedReasonsCount()Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
| Returns | |
|---|---|
| Type | Description |
int |
The count of assistSkippedReasons. |
getAssistSkippedReasonsList()
public abstract List<AssistAnswer.AssistSkippedReason> getAssistSkippedReasonsList()Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
| Returns | |
|---|---|
| Type | Description |
List<AssistSkippedReason> |
A list containing the assistSkippedReasons. |
getAssistSkippedReasonsValue(int index)
public abstract int getAssistSkippedReasonsValue(int index)Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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 abstract List<Integer> getAssistSkippedReasonsValueList()Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for assistSkippedReasons. |
getCustomerPolicyEnforcementResult()
public abstract 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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult |
The customerPolicyEnforcementResult. |
getCustomerPolicyEnforcementResultOrBuilder()
public abstract 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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResultOrBuilder |
|
getName()
public abstract String 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 abstract 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. |
getReplies(int index)
public abstract AssistAnswer.Reply getReplies(int index)Replies of the assistant.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.Reply |
|
getRepliesCount()
public abstract int getRepliesCount()Replies of the assistant.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getRepliesList()
public abstract List<AssistAnswer.Reply> getRepliesList()Replies of the assistant.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3;
| Returns | |
|---|---|
| Type | Description |
List<Reply> |
|
getRepliesOrBuilder(int index)
public abstract AssistAnswer.ReplyOrBuilder getRepliesOrBuilder(int index)Replies of the assistant.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.ReplyOrBuilder |
|
getRepliesOrBuilderList()
public abstract List<? extends AssistAnswer.ReplyOrBuilder> getRepliesOrBuilderList()Replies of the assistant.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder> |
|
getState()
public abstract AssistAnswer.State getState()State of the answer generation.
.google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2;
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.State |
The state. |
getStateValue()
public abstract int getStateValue()State of the answer generation.
.google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
hasCustomerPolicyEnforcementResult()
public abstract 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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the customerPolicyEnforcementResult field is set. |