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
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
LAST_MATCHED_INTENT_FIELD_NUMBER
public static final int LAST_MATCHED_INTENT_FIELD_NUMBER
Field Value
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static WebhookRequest.IntentInfo getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static WebhookRequest.IntentInfo.Builder newBuilder()
Returns
newBuilder(WebhookRequest.IntentInfo prototype)
public static WebhookRequest.IntentInfo.Builder newBuilder(WebhookRequest.IntentInfo prototype)
Parameter
Returns
public static WebhookRequest.IntentInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static WebhookRequest.IntentInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static WebhookRequest.IntentInfo parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WebhookRequest.IntentInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static WebhookRequest.IntentInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WebhookRequest.IntentInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WebhookRequest.IntentInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static WebhookRequest.IntentInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WebhookRequest.IntentInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static WebhookRequest.IntentInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static WebhookRequest.IntentInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WebhookRequest.IntentInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<WebhookRequest.IntentInfo> parser()
Returns
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
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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()
Returns
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()
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
getParserForType()
public Parser<WebhookRequest.IntentInfo> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public WebhookRequest.IntentInfo.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WebhookRequest.IntentInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public WebhookRequest.IntentInfo.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions