public static final class WebhookRequest.IntentInfo extends GeneratedMessageV3 implements WebhookRequest.IntentInfoOrBuilder
Represents intent information communicated to the webhook.
Protobuf type google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo
Static Fields
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LAST_MATCHED_INTENT_FIELD_NUMBER
public static final int LAST_MATCHED_INTENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static WebhookRequest.IntentInfo getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static WebhookRequest.IntentInfo.Builder newBuilder()
newBuilder(WebhookRequest.IntentInfo prototype)
public static WebhookRequest.IntentInfo.Builder newBuilder(WebhookRequest.IntentInfo prototype)
public static WebhookRequest.IntentInfo parseDelimitedFrom(InputStream input)
public static WebhookRequest.IntentInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static WebhookRequest.IntentInfo parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WebhookRequest.IntentInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static WebhookRequest.IntentInfo parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WebhookRequest.IntentInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WebhookRequest.IntentInfo parseFrom(CodedInputStream input)
public static WebhookRequest.IntentInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WebhookRequest.IntentInfo parseFrom(InputStream input)
public static WebhookRequest.IntentInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static WebhookRequest.IntentInfo parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WebhookRequest.IntentInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<WebhookRequest.IntentInfo> parser()
Methods
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
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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()
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.
|
getParameters()
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
|
getParserForType()
public Parser<WebhookRequest.IntentInfo> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public WebhookRequest.IntentInfo.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WebhookRequest.IntentInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public WebhookRequest.IntentInfo.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides