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.v3beta1.WebhookRequest.IntentInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.IntentInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public WebhookRequest.IntentInfo build()
buildPartial()
public WebhookRequest.IntentInfo buildPartial()
clear()
public WebhookRequest.IntentInfo.Builder clear()
Overrides
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;
clearDisplayName()
public WebhookRequest.IntentInfo.Builder clearDisplayName()
Always present. The display name of the last matched
intent.
string display_name = 3;
clearField(Descriptors.FieldDescriptor field)
public WebhookRequest.IntentInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLastMatchedIntent()
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public WebhookRequest.IntentInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParameters()
public WebhookRequest.IntentInfo.Builder clearParameters()
clone()
public WebhookRequest.IntentInfo.Builder clone()
Overrides
containsParameters(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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
Parameter |
Name |
Description |
key |
String
|
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;
Returns |
Type |
Description |
float |
The confidence.
|
getDefaultInstanceForType()
public WebhookRequest.IntentInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDisplayName()
public String getDisplayName()
Always present. The display name of the last matched
intent.
string display_name = 3;
Returns |
Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Always present. The display name of the last matched
intent.
string display_name = 3;
Returns |
Type |
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) = { ... }
Returns |
Type |
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) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for lastMatchedIntent.
|
getMutableParameters() (deprecated)
public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getMutableParameters()
Use alternate mutation accessors instead.
getParameters() (deprecated)
public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParameters()
getParametersCount()
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
Returns |
Type |
Description |
int |
|
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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
getParametersOrDefault(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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
getParametersOrThrow(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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
Parameter |
Name |
Description |
key |
String
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(WebhookRequest.IntentInfo other)
public WebhookRequest.IntentInfo.Builder mergeFrom(WebhookRequest.IntentInfo other)
public WebhookRequest.IntentInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public WebhookRequest.IntentInfo.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.IntentInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllParameters(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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
putParameters(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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
putParametersBuilderIfAbsent(String key)
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;
Parameter |
Name |
Description |
key |
String
|
removeParameters(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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;
Parameter |
Name |
Description |
key |
String
|
setConfidence(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;
Parameter |
Name |
Description |
value |
float
The confidence to set.
|
setDisplayName(String value)
public WebhookRequest.IntentInfo.Builder setDisplayName(String value)
Always present. The display name of the last matched
intent.
string display_name = 3;
Parameter |
Name |
Description |
value |
String
The displayName to set.
|
setDisplayNameBytes(ByteString value)
public WebhookRequest.IntentInfo.Builder setDisplayNameBytes(ByteString value)
Always present. The display name of the last matched
intent.
string display_name = 3;
Parameter |
Name |
Description |
value |
ByteString
The bytes for displayName to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.IntentInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLastMatchedIntent(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) = { ... }
Parameter |
Name |
Description |
value |
String
The lastMatchedIntent to set.
|
setLastMatchedIntentBytes(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) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for lastMatchedIntent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WebhookRequest.IntentInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.IntentInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides