Package com.google.cloud.dialogflow.v2
Class HumanAgentAssistantEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
- com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.Builder
-
- All Implemented Interfaces:
HumanAgentAssistantEventOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- HumanAgentAssistantEvent
public static final class HumanAgentAssistantEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder> implements HumanAgentAssistantEventOrBuilder
Represents a notification sent to Cloud Pub/Sub subscribers for human agent assistant events in a specific conversation.
Protobuf typegoogle.cloud.dialogflow.v2.HumanAgentAssistantEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HumanAgentAssistantEvent.Builder
addAllSuggestionResults(Iterable<? extends SuggestionResult> values)
The suggestion results payload that this notification refers to.HumanAgentAssistantEvent.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HumanAgentAssistantEvent.Builder
addSuggestionResults(int index, SuggestionResult value)
The suggestion results payload that this notification refers to.HumanAgentAssistantEvent.Builder
addSuggestionResults(int index, SuggestionResult.Builder builderForValue)
The suggestion results payload that this notification refers to.HumanAgentAssistantEvent.Builder
addSuggestionResults(SuggestionResult value)
The suggestion results payload that this notification refers to.HumanAgentAssistantEvent.Builder
addSuggestionResults(SuggestionResult.Builder builderForValue)
The suggestion results payload that this notification refers to.SuggestionResult.Builder
addSuggestionResultsBuilder()
The suggestion results payload that this notification refers to.SuggestionResult.Builder
addSuggestionResultsBuilder(int index)
The suggestion results payload that this notification refers to.HumanAgentAssistantEvent
build()
HumanAgentAssistantEvent
buildPartial()
HumanAgentAssistantEvent.Builder
clear()
HumanAgentAssistantEvent.Builder
clearConversation()
The conversation this notification refers to.HumanAgentAssistantEvent.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
HumanAgentAssistantEvent.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
HumanAgentAssistantEvent.Builder
clearParticipant()
The participant that the suggestion is compiled for.HumanAgentAssistantEvent.Builder
clearSuggestionResults()
The suggestion results payload that this notification refers to.HumanAgentAssistantEvent.Builder
clone()
String
getConversation()
The conversation this notification refers to.com.google.protobuf.ByteString
getConversationBytes()
The conversation this notification refers to.HumanAgentAssistantEvent
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getParticipant()
The participant that the suggestion is compiled for.com.google.protobuf.ByteString
getParticipantBytes()
The participant that the suggestion is compiled for.SuggestionResult
getSuggestionResults(int index)
The suggestion results payload that this notification refers to.SuggestionResult.Builder
getSuggestionResultsBuilder(int index)
The suggestion results payload that this notification refers to.List<SuggestionResult.Builder>
getSuggestionResultsBuilderList()
The suggestion results payload that this notification refers to.int
getSuggestionResultsCount()
The suggestion results payload that this notification refers to.List<SuggestionResult>
getSuggestionResultsList()
The suggestion results payload that this notification refers to.SuggestionResultOrBuilder
getSuggestionResultsOrBuilder(int index)
The suggestion results payload that this notification refers to.List<? extends SuggestionResultOrBuilder>
getSuggestionResultsOrBuilderList()
The suggestion results payload that this notification refers to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
HumanAgentAssistantEvent.Builder
mergeFrom(HumanAgentAssistantEvent other)
HumanAgentAssistantEvent.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
HumanAgentAssistantEvent.Builder
mergeFrom(com.google.protobuf.Message other)
HumanAgentAssistantEvent.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
HumanAgentAssistantEvent.Builder
removeSuggestionResults(int index)
The suggestion results payload that this notification refers to.HumanAgentAssistantEvent.Builder
setConversation(String value)
The conversation this notification refers to.HumanAgentAssistantEvent.Builder
setConversationBytes(com.google.protobuf.ByteString value)
The conversation this notification refers to.HumanAgentAssistantEvent.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HumanAgentAssistantEvent.Builder
setParticipant(String value)
The participant that the suggestion is compiled for.HumanAgentAssistantEvent.Builder
setParticipantBytes(com.google.protobuf.ByteString value)
The participant that the suggestion is compiled for.HumanAgentAssistantEvent.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
HumanAgentAssistantEvent.Builder
setSuggestionResults(int index, SuggestionResult value)
The suggestion results payload that this notification refers to.HumanAgentAssistantEvent.Builder
setSuggestionResults(int index, SuggestionResult.Builder builderForValue)
The suggestion results payload that this notification refers to.HumanAgentAssistantEvent.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
clear
public HumanAgentAssistantEvent.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
getDefaultInstanceForType
public HumanAgentAssistantEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public HumanAgentAssistantEvent build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HumanAgentAssistantEvent buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HumanAgentAssistantEvent.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
setField
public HumanAgentAssistantEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
clearField
public HumanAgentAssistantEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
clearOneof
public HumanAgentAssistantEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
setRepeatedField
public HumanAgentAssistantEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
addRepeatedField
public HumanAgentAssistantEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
mergeFrom
public HumanAgentAssistantEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HumanAgentAssistantEvent.Builder>
-
mergeFrom
public HumanAgentAssistantEvent.Builder mergeFrom(HumanAgentAssistantEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
mergeFrom
public HumanAgentAssistantEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HumanAgentAssistantEvent.Builder>
- Throws:
IOException
-
getConversation
public String getConversation()
The conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Specified by:
getConversation
in interfaceHumanAgentAssistantEventOrBuilder
- Returns:
- The conversation.
-
getConversationBytes
public com.google.protobuf.ByteString getConversationBytes()
The conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Specified by:
getConversationBytes
in interfaceHumanAgentAssistantEventOrBuilder
- Returns:
- The bytes for conversation.
-
setConversation
public HumanAgentAssistantEvent.Builder setConversation(String value)
The conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Parameters:
value
- The conversation to set.- Returns:
- This builder for chaining.
-
clearConversation
public HumanAgentAssistantEvent.Builder clearConversation()
The conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Returns:
- This builder for chaining.
-
setConversationBytes
public HumanAgentAssistantEvent.Builder setConversationBytes(com.google.protobuf.ByteString value)
The conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Parameters:
value
- The bytes for conversation to set.- Returns:
- This builder for chaining.
-
getParticipant
public String getParticipant()
The participant that the suggestion is compiled for. Format: `projects/<Project ID>/conversations/<Conversation ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
string participant = 3;
- Specified by:
getParticipant
in interfaceHumanAgentAssistantEventOrBuilder
- Returns:
- The participant.
-
getParticipantBytes
public com.google.protobuf.ByteString getParticipantBytes()
The participant that the suggestion is compiled for. Format: `projects/<Project ID>/conversations/<Conversation ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
string participant = 3;
- Specified by:
getParticipantBytes
in interfaceHumanAgentAssistantEventOrBuilder
- Returns:
- The bytes for participant.
-
setParticipant
public HumanAgentAssistantEvent.Builder setParticipant(String value)
The participant that the suggestion is compiled for. Format: `projects/<Project ID>/conversations/<Conversation ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
string participant = 3;
- Parameters:
value
- The participant to set.- Returns:
- This builder for chaining.
-
clearParticipant
public HumanAgentAssistantEvent.Builder clearParticipant()
The participant that the suggestion is compiled for. Format: `projects/<Project ID>/conversations/<Conversation ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
string participant = 3;
- Returns:
- This builder for chaining.
-
setParticipantBytes
public HumanAgentAssistantEvent.Builder setParticipantBytes(com.google.protobuf.ByteString value)
The participant that the suggestion is compiled for. Format: `projects/<Project ID>/conversations/<Conversation ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
string participant = 3;
- Parameters:
value
- The bytes for participant to set.- Returns:
- This builder for chaining.
-
getSuggestionResultsList
public List<SuggestionResult> getSuggestionResultsList()
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
- Specified by:
getSuggestionResultsList
in interfaceHumanAgentAssistantEventOrBuilder
-
getSuggestionResultsCount
public int getSuggestionResultsCount()
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
- Specified by:
getSuggestionResultsCount
in interfaceHumanAgentAssistantEventOrBuilder
-
getSuggestionResults
public SuggestionResult getSuggestionResults(int index)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
- Specified by:
getSuggestionResults
in interfaceHumanAgentAssistantEventOrBuilder
-
setSuggestionResults
public HumanAgentAssistantEvent.Builder setSuggestionResults(int index, SuggestionResult value)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
setSuggestionResults
public HumanAgentAssistantEvent.Builder setSuggestionResults(int index, SuggestionResult.Builder builderForValue)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
addSuggestionResults
public HumanAgentAssistantEvent.Builder addSuggestionResults(SuggestionResult value)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
addSuggestionResults
public HumanAgentAssistantEvent.Builder addSuggestionResults(int index, SuggestionResult value)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
addSuggestionResults
public HumanAgentAssistantEvent.Builder addSuggestionResults(SuggestionResult.Builder builderForValue)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
addSuggestionResults
public HumanAgentAssistantEvent.Builder addSuggestionResults(int index, SuggestionResult.Builder builderForValue)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
addAllSuggestionResults
public HumanAgentAssistantEvent.Builder addAllSuggestionResults(Iterable<? extends SuggestionResult> values)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
clearSuggestionResults
public HumanAgentAssistantEvent.Builder clearSuggestionResults()
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
removeSuggestionResults
public HumanAgentAssistantEvent.Builder removeSuggestionResults(int index)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
getSuggestionResultsBuilder
public SuggestionResult.Builder getSuggestionResultsBuilder(int index)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
getSuggestionResultsOrBuilder
public SuggestionResultOrBuilder getSuggestionResultsOrBuilder(int index)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
- Specified by:
getSuggestionResultsOrBuilder
in interfaceHumanAgentAssistantEventOrBuilder
-
getSuggestionResultsOrBuilderList
public List<? extends SuggestionResultOrBuilder> getSuggestionResultsOrBuilderList()
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
- Specified by:
getSuggestionResultsOrBuilderList
in interfaceHumanAgentAssistantEventOrBuilder
-
addSuggestionResultsBuilder
public SuggestionResult.Builder addSuggestionResultsBuilder()
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
addSuggestionResultsBuilder
public SuggestionResult.Builder addSuggestionResultsBuilder(int index)
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
getSuggestionResultsBuilderList
public List<SuggestionResult.Builder> getSuggestionResultsBuilderList()
The suggestion results payload that this notification refers to.
repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;
-
setUnknownFields
public final HumanAgentAssistantEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
mergeUnknownFields
public final HumanAgentAssistantEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HumanAgentAssistantEvent.Builder>
-
-