Class WebhookRequest.IntentInfo.Builder (0.53.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.v3.WebhookRequest.IntentInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WebhookRequest.IntentInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WebhookRequest.IntentInfo.Builder
Overrides

build()

public WebhookRequest.IntentInfo build()
Returns
Type Description
WebhookRequest.IntentInfo

buildPartial()

public WebhookRequest.IntentInfo buildPartial()
Returns
Type Description
WebhookRequest.IntentInfo

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public WebhookRequest.IntentInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
WebhookRequest.IntentInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public WebhookRequest.IntentInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WebhookRequest.IntentInfo.Builder
Overrides

clearParameters()

public WebhookRequest.IntentInfo.Builder clearParameters()
Returns
Type Description
WebhookRequest.IntentInfo.Builder

clone()

public WebhookRequest.IntentInfo.Builder clone()
Returns
Type Description
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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameter
Name Description
key String
Returns
Type Description
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
Type Description
float

The confidence.

getDefaultInstanceForType()

public WebhookRequest.IntentInfo getDefaultInstanceForType()
Returns
Type Description
WebhookRequest.IntentInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

Returns
Type Description
Map<String,IntentParameterValue>

getParameters() (deprecated)

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

Use #getParametersMap() instead.

Returns
Type Description
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.v3.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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Returns
Type Description
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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameters
Name Description
key String
defaultValue WebhookRequest.IntentInfo.IntentParameterValue
Returns
Type Description
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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameter
Name Description
key String
Returns
Type Description
WebhookRequest.IntentInfo.IntentParameterValue

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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()
Returns
Type Description
boolean
Overrides

mergeFrom(WebhookRequest.IntentInfo other)

public WebhookRequest.IntentInfo.Builder mergeFrom(WebhookRequest.IntentInfo other)
Parameter
Name Description
other WebhookRequest.IntentInfo
Returns
Type Description
WebhookRequest.IntentInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WebhookRequest.IntentInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookRequest.IntentInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WebhookRequest.IntentInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WebhookRequest.IntentInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WebhookRequest.IntentInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameter
Name Description
values Map<String,IntentParameterValue>
Returns
Type Description
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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameters
Name Description
key String
value WebhookRequest.IntentInfo.IntentParameterValue
Returns
Type Description
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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameter
Name Description
key String
Returns
Type Description
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.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2;

Parameter
Name Description
key String
Returns
Type Description
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
Name Description
value float

The confidence to set.

Returns
Type Description
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
Name Description
value String

The displayName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
WebhookRequest.IntentInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public WebhookRequest.IntentInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The lastMatchedIntent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for lastMatchedIntent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WebhookRequest.IntentInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WebhookRequest.IntentInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WebhookRequest.IntentInfo.Builder
Overrides