public static final class WebhookRequest.IntentInfo.Builder extends GeneratedMessageV3.Builder<WebhookRequest.IntentInfo.Builder> implements WebhookRequest.IntentInfoOrBuilder
Represents intent information communicated to the webhook.
Protobuf type google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
ReturnsMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.IntentInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
ParametersReturnsOverridesbuild()
public WebhookRequest.IntentInfo build()
ReturnsbuildPartial()
public WebhookRequest.IntentInfo buildPartial()
Returnsclear()
public WebhookRequest.IntentInfo.Builder clear()
ReturnsOverridesclearConfidence()
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;
ReturnsclearDisplayName()
public WebhookRequest.IntentInfo.Builder clearDisplayName()
Always present. The display name of the last matched intent.
string display_name = 3;
ReturnsclearField(Descriptors.FieldDescriptor field)
public WebhookRequest.IntentInfo.Builder clearField(Descriptors.FieldDescriptor field)
ParameterReturnsOverridesclearLastMatchedIntent()
public WebhookRequest.IntentInfo.Builder clearLastMatchedIntent()
Always present. The unique identifier of the last matched intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
ReturnsclearOneof(Descriptors.OneofDescriptor oneof)
public WebhookRequest.IntentInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
ParameterReturnsOverridesclearParameters()
public WebhookRequest.IntentInfo.Builder clearParameters()
Returnsclone()
public WebhookRequest.IntentInfo.Builder clone()
ReturnsOverridescontainsParameters(String key)
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;
ParameterReturnsgetConfidence()
public float getConfidence()
The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;
ReturnsType | Description |
float | The confidence. |
getDefaultInstanceForType()
public WebhookRequest.IntentInfo getDefaultInstanceForType()
ReturnsgetDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
ReturnsOverridesgetDisplayName()
public String getDisplayName()
Always present. The display name of the last matched intent.
string display_name = 3;
ReturnsType | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Always present. The display name of the last matched intent.
string display_name = 3;
ReturnsType | Description |
ByteString | The bytes for displayName. |
getLastMatchedIntent()
public String getLastMatchedIntent()
Always present. The unique identifier of the last matched intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
ReturnsType | Description |
String | The lastMatchedIntent. |
getLastMatchedIntentBytes()
public ByteString getLastMatchedIntentBytes()
Always present. The unique identifier of the last matched intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
ReturnsType | Description |
ByteString | The bytes for lastMatchedIntent. |
getMutableParameters()
public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getMutableParameters()
Use alternate mutation accessors instead.
ReturnsgetParameters()
public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParameters()
ReturnsgetParametersCount()
public int getParametersCount()
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;
ReturnsgetParametersMap()
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;
ReturnsgetParametersOrDefault(String key, WebhookRequest.IntentInfo.IntentParameterValue defaultValue)
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;
ParametersReturnsgetParametersOrThrow(String key)
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;
ParameterReturnsinternalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
ReturnsOverridesinternalGetMapField(int number)
protected MapField internalGetMapField(int number)
ParameterReturnsOverridesinternalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
ParameterReturnsOverridesisInitialized()
public final boolean isInitialized()
ReturnsOverridesmergeFrom(WebhookRequest.IntentInfo other)
public WebhookRequest.IntentInfo.Builder mergeFrom(WebhookRequest.IntentInfo other)
ParameterReturnspublic WebhookRequest.IntentInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsOverridesExceptionsmergeFrom(Message other)
public WebhookRequest.IntentInfo.Builder mergeFrom(Message other)
ParameterReturnsOverridesmergeUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.IntentInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
ParameterReturnsOverridesputAllParameters(Map<String,WebhookRequest.IntentInfo.IntentParameterValue> values)
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;
ParameterReturnsputParameters(String key, WebhookRequest.IntentInfo.IntentParameterValue value)
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;
ParametersReturnsremoveParameters(String key)
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;
ParameterReturnssetConfidence(float value)
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;
ParameterName | Description |
value | float
The confidence to set. |
ReturnssetDisplayName(String value)
public WebhookRequest.IntentInfo.Builder setDisplayName(String value)
Always present. The display name of the last matched intent.
string display_name = 3;
ParameterName | Description |
value | String
The displayName to set. |
ReturnssetDisplayNameBytes(ByteString value)
public WebhookRequest.IntentInfo.Builder setDisplayNameBytes(ByteString value)
Always present. The display name of the last matched intent.
string display_name = 3;
ParameterName | Description |
value | ByteString
The bytes for displayName to set. |
ReturnssetField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.IntentInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
ParametersReturnsOverridessetLastMatchedIntent(String value)
public WebhookRequest.IntentInfo.Builder setLastMatchedIntent(String value)
Always present. The unique identifier of the last matched intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
ParameterName | Description |
value | String
The lastMatchedIntent to set. |
ReturnssetLastMatchedIntentBytes(ByteString value)
public WebhookRequest.IntentInfo.Builder setLastMatchedIntentBytes(ByteString value)
Always present. The unique identifier of the last matched intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
.
string last_matched_intent = 1 [(.google.api.resource_reference) = { ... }
ParameterName | Description |
value | ByteString
The bytes for lastMatchedIntent to set. |
ReturnssetRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WebhookRequest.IntentInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
ParametersReturnsOverridessetUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.IntentInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
ParameterReturnsOverrides