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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
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