Class WebhookRequest.IntentInfo.Builder (0.52.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WebhookRequest.IntentInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
Overrides

build()

public WebhookRequest.IntentInfo build()
Returns
TypeDescription
WebhookRequest.IntentInfo

buildPartial()

public WebhookRequest.IntentInfo buildPartial()
Returns
TypeDescription
WebhookRequest.IntentInfo

clear()

public WebhookRequest.IntentInfo.Builder clear()
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
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
TypeDescription
WebhookRequest.IntentInfo.Builder

This builder for chaining.

clearDisplayName()

public WebhookRequest.IntentInfo.Builder clearDisplayName()

Always present. The display name of the last matched intent.

string display_name = 3;

Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public WebhookRequest.IntentInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
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
TypeDescription
WebhookRequest.IntentInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public WebhookRequest.IntentInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
Overrides

clearParameters()

public WebhookRequest.IntentInfo.Builder clearParameters()
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

clone()

public WebhookRequest.IntentInfo.Builder clone()
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
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
NameDescription
keyString
Returns
TypeDescription
boolean

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
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public WebhookRequest.IntentInfo getDefaultInstanceForType()
Returns
TypeDescription
WebhookRequest.IntentInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Always present. The display name of the last matched intent.

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Always present. The display name of the last matched intent.

string display_name = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for lastMatchedIntent.

getMutableParameters() (deprecated)

public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getMutableParameters()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,IntentParameterValue>

getParameters() (deprecated)

public Map<String,WebhookRequest.IntentInfo.IntentParameterValue> getParameters()

Use #getParametersMap() instead.

Returns
TypeDescription
Map<String,IntentParameterValue>

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
TypeDescription
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;

Returns
TypeDescription
Map<String,IntentParameterValue>

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
NameDescription
keyString
defaultValueWebhookRequest.IntentInfo.IntentParameterValue
Returns
TypeDescription
WebhookRequest.IntentInfo.IntentParameterValue

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
NameDescription
keyString
Returns
TypeDescription
WebhookRequest.IntentInfo.IntentParameterValue

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WebhookRequest.IntentInfo other)

public WebhookRequest.IntentInfo.Builder mergeFrom(WebhookRequest.IntentInfo other)
Parameter
NameDescription
otherWebhookRequest.IntentInfo
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WebhookRequest.IntentInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public WebhookRequest.IntentInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WebhookRequest.IntentInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
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
NameDescription
valuesMap<String,IntentParameterValue>
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

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
NameDescription
keyString
valueWebhookRequest.IntentInfo.IntentParameterValue
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

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
NameDescription
keyString
Returns
TypeDescription
WebhookRequest.IntentInfo.IntentParameterValue.Builder

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
NameDescription
keyString
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

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
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

This builder for chaining.

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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public WebhookRequest.IntentInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
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
NameDescription
valueString

The lastMatchedIntent to set.

Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for lastMatchedIntent to set.

Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WebhookRequest.IntentInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WebhookRequest.IntentInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WebhookRequest.IntentInfo.Builder
Overrides