Class Action.IntentMatch.MatchedIntent.Builder (0.89.0)

public static final class Action.IntentMatch.MatchedIntent.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Action.IntentMatch.MatchedIntent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public Action.IntentMatch.MatchedIntent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public Action.IntentMatch.MatchedIntent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.IntentMatch.MatchedIntent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides

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.

setField(Descriptors.FieldDescriptor field, Object value)

public Action.IntentMatch.MatchedIntent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides

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.

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

public Action.IntentMatch.MatchedIntent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final Action.IntentMatch.MatchedIntent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.IntentMatch.MatchedIntent.Builder
Overrides