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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
clear
public WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
-
getDefaultInstanceForType
public WebhookRequest.IntentInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public WebhookRequest.IntentInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WebhookRequest.IntentInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
-
setField
public WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
-
clearField
public WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
-
clearOneof
public WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
-
setRepeatedField
public WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
-
addRepeatedField
public WebhookRequest.IntentInfo.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<WebhookRequest.IntentInfo.Builder>
-
mergeFrom
public WebhookRequest.IntentInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WebhookRequest.IntentInfo.Builder>
-
mergeFrom
public WebhookRequest.IntentInfo.Builder mergeFrom(WebhookRequest.IntentInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getLastMatchedIntent
in 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:
getLastMatchedIntentBytes
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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.IntentInfoOrBuilder
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:
getParametersCount
in 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:
containsParameters
in interfaceWebhookRequest.IntentInfoOrBuilder
-
getParameters
@Deprecated public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParameters()
Deprecated.UsegetParametersMap()
instead.- Specified by:
getParameters
in 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:
getParametersMap
in 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:
getParametersOrDefault
in 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:
getParametersOrThrow
in 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:
getConfidence
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
mergeUnknownFields
public final WebhookRequest.IntentInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder>
-
-