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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.IntentInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public WebhookRequest.IntentInfo build()
Returns
buildPartial()
public WebhookRequest.IntentInfo buildPartial()
Returns
clear()
public WebhookRequest.IntentInfo.Builder clear()
Returns
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;
Returns
clearDisplayName()
public WebhookRequest.IntentInfo.Builder clearDisplayName()
Always present. The display name of the last matched intent.
string display_name = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public WebhookRequest.IntentInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public WebhookRequest.IntentInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParameters()
public WebhookRequest.IntentInfo.Builder clearParameters()
Returns
clone()
public WebhookRequest.IntentInfo.Builder clone()
Returns
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
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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()
public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getMutableParameters()
Use alternate mutation accessors instead.
Returns
getParameters()
public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParameters()
Returns
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
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;
Returns
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;
Parameters
Returns
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
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(WebhookRequest.IntentInfo other)
public WebhookRequest.IntentInfo.Builder mergeFrom(WebhookRequest.IntentInfo other)
Parameter
Returns
public WebhookRequest.IntentInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public WebhookRequest.IntentInfo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.IntentInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.IntentInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WebhookRequest.IntentInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.IntentInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides