Class Action.IntentMatch.MatchedIntent.Builder (0.94.0)

public static final class Action.IntentMatch.MatchedIntent.Builder extends GeneratedMessage.Builder<Action.IntentMatch.MatchedIntent.Builder> implements Action.IntentMatch.MatchedIntentOrBuilder

Stores the matched intent, which is the result of the intent match action.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Action.IntentMatch.MatchedIntent

Static Methods

getDescriptor()

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

Methods

build()

public Action.IntentMatch.MatchedIntent build()
Returns
Type Description
Action.IntentMatch.MatchedIntent

buildPartial()

public Action.IntentMatch.MatchedIntent buildPartial()
Returns
Type Description
Action.IntentMatch.MatchedIntent

clear()

public Action.IntentMatch.MatchedIntent.Builder clear()
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides

clearDisplayName()

public Action.IntentMatch.MatchedIntent.Builder clearDisplayName()

The display name of the matched intent.

string display_name = 2;

Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

This builder for chaining.

clearGenerativeFallback()

public Action.IntentMatch.MatchedIntent.Builder clearGenerativeFallback()

The generative fallback response of the matched intent.

.google.protobuf.Struct generative_fallback = 4;

Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

clearIntentId()

public Action.IntentMatch.MatchedIntent.Builder clearIntentId()

The ID of the matched intent.

string intent_id = 1;

Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

This builder for chaining.

clearScore()

public Action.IntentMatch.MatchedIntent.Builder clearScore()

The score of the matched intent.

float score = 3;

Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

This builder for chaining.

getDefaultInstanceForType()

public Action.IntentMatch.MatchedIntent getDefaultInstanceForType()
Returns
Type Description
Action.IntentMatch.MatchedIntent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the matched intent.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the matched intent.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getGenerativeFallback()

public Struct getGenerativeFallback()

The generative fallback response of the matched intent.

.google.protobuf.Struct generative_fallback = 4;

Returns
Type Description
Struct

The generativeFallback.

getGenerativeFallbackBuilder()

public Struct.Builder getGenerativeFallbackBuilder()

The generative fallback response of the matched intent.

.google.protobuf.Struct generative_fallback = 4;

Returns
Type Description
Builder

getGenerativeFallbackOrBuilder()

public StructOrBuilder getGenerativeFallbackOrBuilder()

The generative fallback response of the matched intent.

.google.protobuf.Struct generative_fallback = 4;

Returns
Type Description
StructOrBuilder

getIntentId()

public String getIntentId()

The ID of the matched intent.

string intent_id = 1;

Returns
Type Description
String

The intentId.

getIntentIdBytes()

public ByteString getIntentIdBytes()

The ID of the matched intent.

string intent_id = 1;

Returns
Type Description
ByteString

The bytes for intentId.

getScore()

public float getScore()

The score of the matched intent.

float score = 3;

Returns
Type Description
float

The score.

hasGenerativeFallback()

public boolean hasGenerativeFallback()

The generative fallback response of the matched intent.

.google.protobuf.Struct generative_fallback = 4;

Returns
Type Description
boolean

Whether the generativeFallback field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Action.IntentMatch.MatchedIntent other)

public Action.IntentMatch.MatchedIntent.Builder mergeFrom(Action.IntentMatch.MatchedIntent other)
Parameter
Name Description
other Action.IntentMatch.MatchedIntent
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Action.IntentMatch.MatchedIntent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Action.IntentMatch.MatchedIntent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides

mergeGenerativeFallback(Struct value)

public Action.IntentMatch.MatchedIntent.Builder mergeGenerativeFallback(Struct value)

The generative fallback response of the matched intent.

.google.protobuf.Struct generative_fallback = 4;

Parameter
Name Description
value Struct
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

setDisplayName(String value)

public Action.IntentMatch.MatchedIntent.Builder setDisplayName(String value)

The display name of the matched intent.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Action.IntentMatch.MatchedIntent.Builder setDisplayNameBytes(ByteString value)

The display name of the matched intent.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

This builder for chaining.

setGenerativeFallback(Struct value)

public Action.IntentMatch.MatchedIntent.Builder setGenerativeFallback(Struct value)

The generative fallback response of the matched intent.

.google.protobuf.Struct generative_fallback = 4;

Parameter
Name Description
value Struct
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

setGenerativeFallback(Struct.Builder builderForValue)

public Action.IntentMatch.MatchedIntent.Builder setGenerativeFallback(Struct.Builder builderForValue)

The generative fallback response of the matched intent.

.google.protobuf.Struct generative_fallback = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

setIntentId(String value)

public Action.IntentMatch.MatchedIntent.Builder setIntentId(String value)

The ID of the matched intent.

string intent_id = 1;

Parameter
Name Description
value String

The intentId to set.

Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

This builder for chaining.

setIntentIdBytes(ByteString value)

public Action.IntentMatch.MatchedIntent.Builder setIntentIdBytes(ByteString value)

The ID of the matched intent.

string intent_id = 1;

Parameter
Name Description
value ByteString

The bytes for intentId to set.

Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

This builder for chaining.

setScore(float value)

public Action.IntentMatch.MatchedIntent.Builder setScore(float value)

The score of the matched intent.

float score = 3;

Parameter
Name Description
value float

The score to set.

Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder

This builder for chaining.