Class WebhookRequest.IntentInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
- com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder> implements WebhookRequest.IntentInfoOrBuilder
Represents intent information communicated to the webhook.
Protobuf typegoogle.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
getDefaultInstanceForType
public WebhookRequest.IntentInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public WebhookRequest.IntentInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WebhookRequest.IntentInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WebhookRequest.IntentInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
setField
public WebhookRequest.IntentInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
clearField
public WebhookRequest.IntentInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
clearOneof
public WebhookRequest.IntentInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
setRepeatedField
public WebhookRequest.IntentInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
addRepeatedField
public WebhookRequest.IntentInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
mergeFrom
public WebhookRequest.IntentInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WebhookRequest.IntentInfo.Builder>
-
mergeFrom
public WebhookRequest.IntentInfo.Builder mergeFrom(WebhookRequest.IntentInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String getLastMatchedIntent()
Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
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.v3.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getLastMatchedIntentBytesin interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The bytes for lastMatchedIntent.
-
setLastMatchedIntent
public WebhookRequest.IntentInfo.Builder setLastMatchedIntent(String value)
Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The lastMatchedIntent to set.- Returns:
- This builder for chaining.
-
clearLastMatchedIntent
public WebhookRequest.IntentInfo.Builder clearLastMatchedIntent()
Always present. The unique identifier of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
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.v3.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for lastMatchedIntent to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.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.v3.Intent].
string display_name = 3;- Specified by:
getDisplayNameBytesin interfaceWebhookRequest.IntentInfoOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public WebhookRequest.IntentInfo.Builder setDisplayName(String value)
Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
string display_name = 3;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public WebhookRequest.IntentInfo.Builder clearDisplayName()
Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
string display_name = 3;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public WebhookRequest.IntentInfo.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersCountin interfaceWebhookRequest.IntentInfoOrBuilder
-
containsParameters
public boolean containsParameters(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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
containsParametersin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParameters
@Deprecated public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParameters()
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParametersMap
public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> 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.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersOrDefaultin interfaceWebhookRequest.IntentInfoOrBuilder
-
getParametersOrThrow
public WebhookRequest.IntentInfo.IntentParameterValue getParametersOrThrow(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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;- Specified by:
getParametersOrThrowin interfaceWebhookRequest.IntentInfoOrBuilder
-
clearParameters
public WebhookRequest.IntentInfo.Builder clearParameters()
-
removeParameters
public WebhookRequest.IntentInfo.Builder removeParameters(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.v3.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.v3.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.v3.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
public WebhookRequest.IntentInfo.Builder setConfidence(float value)
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
public WebhookRequest.IntentInfo.Builder 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.
-
setUnknownFields
public final WebhookRequest.IntentInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
mergeUnknownFields
public final WebhookRequest.IntentInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
-