Class AssistAnswer.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder>
com.google.cloud.discoveryengine.v1.AssistAnswer.Builder
- All Implemented Interfaces:
AssistAnswerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AssistAnswer
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllAssistSkippedReasons(Iterable<? extends AssistAnswer.AssistSkippedReason> values) Reasons for not answering the assist call.Reasons for not answering the assist call.addAllReplies(Iterable<? extends AssistAnswer.Reply> values) Replies of the assistant.Reasons for not answering the assist call.addAssistSkippedReasonsValue(int value) Reasons for not answering the assist call.addReplies(int index, AssistAnswer.Reply value) Replies of the assistant.addReplies(int index, AssistAnswer.Reply.Builder builderForValue) Replies of the assistant.addReplies(AssistAnswer.Reply value) Replies of the assistant.addReplies(AssistAnswer.Reply.Builder builderForValue) Replies of the assistant.Replies of the assistant.addRepliesBuilder(int index) Replies of the assistant.build()clear()Reasons for not answering the assist call.Immutable.Replies of the assistant.State of the answer generation.getAssistSkippedReasons(int index) Reasons for not answering the assist call.intReasons for not answering the assist call.Reasons for not answering the assist call.intgetAssistSkippedReasonsValue(int index) Reasons for not answering the assist call.Reasons for not answering the assist call.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Immutable.com.google.protobuf.ByteStringImmutable.getReplies(int index) Replies of the assistant.getRepliesBuilder(int index) Replies of the assistant.Replies of the assistant.intReplies of the assistant.Replies of the assistant.getRepliesOrBuilder(int index) Replies of the assistant.List<? extends AssistAnswer.ReplyOrBuilder>Replies of the assistant.getState()State of the answer generation.intState of the answer generation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AssistAnswer other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeReplies(int index) Replies of the assistant.setAssistSkippedReasons(int index, AssistAnswer.AssistSkippedReason value) Reasons for not answering the assist call.setAssistSkippedReasonsValue(int index, int value) Reasons for not answering the assist call.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.setReplies(int index, AssistAnswer.Reply value) Replies of the assistant.setReplies(int index, AssistAnswer.Reply.Builder builderForValue) Replies of the assistant.setState(AssistAnswer.State value) State of the answer generation.setStateValue(int value) State of the answer generation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AssistAnswer.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder>
-
mergeFrom
public AssistAnswer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AssistAnswer.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceAssistAnswerOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceAssistAnswerOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;- Specified by:
getStateValuein interfaceAssistAnswerOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;- Specified by:
getStatein interfaceAssistAnswerOrBuilder- Returns:
- The state.
-
setState
State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
State of the answer generation.
.google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;- Returns:
- This builder for chaining.
-
getRepliesList
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;- Specified by:
getRepliesListin interfaceAssistAnswerOrBuilder
-
getRepliesCount
public int getRepliesCount()Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;- Specified by:
getRepliesCountin interfaceAssistAnswerOrBuilder
-
getReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;- Specified by:
getRepliesin interfaceAssistAnswerOrBuilder
-
setReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
setReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
addReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
addReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
addReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
addReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
addAllReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
clearReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
removeReplies
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
getRepliesBuilder
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
getRepliesOrBuilder
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;- Specified by:
getRepliesOrBuilderin interfaceAssistAnswerOrBuilder
-
getRepliesOrBuilderList
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;- Specified by:
getRepliesOrBuilderListin interfaceAssistAnswerOrBuilder
-
addRepliesBuilder
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
addRepliesBuilder
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
getRepliesBuilderList
Replies of the assistant.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3; -
getAssistSkippedReasonsList
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Specified by:
getAssistSkippedReasonsListin interfaceAssistAnswerOrBuilder- Returns:
- A list containing the assistSkippedReasons.
-
getAssistSkippedReasonsCount
public int getAssistSkippedReasonsCount()Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Specified by:
getAssistSkippedReasonsCountin interfaceAssistAnswerOrBuilder- Returns:
- The count of assistSkippedReasons.
-
getAssistSkippedReasons
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Specified by:
getAssistSkippedReasonsin interfaceAssistAnswerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The assistSkippedReasons at the given index.
-
setAssistSkippedReasons
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;- Parameters:
index- The index to set the value at.value- The assistSkippedReasons to set.- Returns:
- This builder for chaining.
-
addAssistSkippedReasons
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Parameters:
value- The assistSkippedReasons to add.- Returns:
- This builder for chaining.
-
addAllAssistSkippedReasons
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;- Parameters:
values- The assistSkippedReasons to add.- Returns:
- This builder for chaining.
-
clearAssistSkippedReasons
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Returns:
- This builder for chaining.
-
getAssistSkippedReasonsValueList
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Specified by:
getAssistSkippedReasonsValueListin interfaceAssistAnswerOrBuilder- Returns:
- A list containing the enum numeric values on the wire for assistSkippedReasons.
-
getAssistSkippedReasonsValue
public int getAssistSkippedReasonsValue(int index) Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Specified by:
getAssistSkippedReasonsValuein interfaceAssistAnswerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of assistSkippedReasons at the given index.
-
setAssistSkippedReasonsValue
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for assistSkippedReasons to set.- Returns:
- This builder for chaining.
-
addAssistSkippedReasonsValue
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Parameters:
value- The enum numeric value on the wire for assistSkippedReasons to add.- Returns:
- This builder for chaining.
-
addAllAssistSkippedReasonsValue
Reasons for not answering the assist call.
repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;- Parameters:
values- The enum numeric values on the wire for assistSkippedReasons to add.- Returns:
- This builder for chaining.
-