Class WebhookRequest.IntentInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.Builder>
com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder
- All Implemented Interfaces:
WebhookRequest.IntentInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WebhookRequest.IntentInfo
public static final class WebhookRequest.IntentInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.Builder>
implements WebhookRequest.IntentInfoOrBuilder
Represents intent information communicated to the webhook.Protobuf type
google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The confidence of the matched intent.Always present.Always present.booleancontainsParameters(String key) Parameters identified as a result of intent matching.floatThe confidence of the matched intent.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAlways present.com.google.protobuf.ByteStringAlways present.Always present.com.google.protobuf.ByteStringAlways present.Deprecated.Deprecated.intParameters identified as a result of intent matching.Parameters identified as a result of intent matching.getParametersOrDefault(String key, WebhookRequest.IntentInfo.IntentParameterValue defaultValue) Parameters identified as a result of intent matching.Parameters identified as a result of intent matching.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Parameters identified as a result of intent matching.Parameters identified as a result of intent matching.Parameters identified as a result of intent matching.removeParameters(String key) Parameters identified as a result of intent matching.setConfidence(float value) The confidence of the matched intent.setDisplayName(String value) Always present.setDisplayNameBytes(com.google.protobuf.ByteString value) Always present.setLastMatchedIntent(String value) Always present.setLastMatchedIntentBytes(com.google.protobuf.ByteString value) Always present.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WebhookRequest.IntentInfo.Builder>
-
mergeFrom
public WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>- Throws:
IOException
-
getLastMatchedIntent
Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getLastMatchedIntentin interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The lastMatchedIntent.
-
getLastMatchedIntentBytes
public com.google.protobuf.ByteString getLastMatchedIntentBytes()Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getLastMatchedIntentBytesin interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The bytes for lastMatchedIntent.
-
setLastMatchedIntent
Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The lastMatchedIntent to set.- Returns:
- This builder for chaining.
-
clearLastMatchedIntent
Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setLastMatchedIntentBytes
public WebhookRequest.IntentInfo.Builder setLastMatchedIntentBytes(com.google.protobuf.ByteString value) Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for lastMatchedIntent to set.- Returns:
- This builder for chaining.
-
getDisplayName
Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
string display_name = 3;- Specified by:
getDisplayNamein interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
string display_name = 3;- Specified by:
getDisplayNameBytesin interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
string display_name = 3;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
string display_name = 3;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
string display_name = 3;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getParametersCount
public int getParametersCount()Description copied from interface:WebhookRequest.IntentInfoOrBuilderParameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersCountin interfaceWebhookRequest.IntentInfoOrBuilder
-
containsParameters
Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
containsParametersin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParametersMap
Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersMapin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParametersOrDefault
public WebhookRequest.IntentInfo.IntentParameterValue getParametersOrDefault(String key, WebhookRequest.IntentInfo.IntentParameterValue defaultValue) Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersOrDefaultin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParametersOrThrow
Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersOrThrowin interfaceWebhookRequest.IntentInfoOrBuilder
-
clearParameters
-
removeParameters
Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; -
getMutableParameters
@Deprecated public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getMutableParameters()Deprecated.Use alternate mutation accessors instead. -
putParameters
public WebhookRequest.IntentInfo.Builder putParameters(String key, WebhookRequest.IntentInfo.IntentParameterValue value) Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; -
putAllParameters
public WebhookRequest.IntentInfo.Builder putAllParameters(Map<String, WebhookRequest.IntentInfo.IntentParameterValue> values) Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; -
putParametersBuilderIfAbsent
public WebhookRequest.IntentInfo.IntentParameterValue.Builder putParametersBuilderIfAbsent(String key) Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here.
map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; -
getConfidence
public float getConfidence()The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;- Specified by:
getConfidencein interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The confidence.
-
setConfidence
The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;- Returns:
- This builder for chaining.
-