Class Action.IntentMatch.MatchedIntent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Action.IntentMatch.MatchedIntent.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Action.IntentMatch.MatchedIntent.Builder
- All Implemented Interfaces:
Action.IntentMatch.MatchedIntentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Action.IntentMatch.MatchedIntent
public static final class Action.IntentMatch.MatchedIntent.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The display name of the matched intent.The generative fallback response of the matched intent.The ID of the matched intent.The score of the matched intent.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe display name of the matched intent.com.google.protobuf.ByteStringThe display name of the matched intent.com.google.protobuf.StructThe generative fallback response of the matched intent.com.google.protobuf.Struct.BuilderThe generative fallback response of the matched intent.com.google.protobuf.StructOrBuilderThe generative fallback response of the matched intent.The ID of the matched intent.com.google.protobuf.ByteStringThe ID of the matched intent.floatgetScore()The score of the matched intent.booleanThe generative fallback response of the matched intent.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGenerativeFallback(com.google.protobuf.Struct value) The generative fallback response of the matched intent.setDisplayName(String value) The display name of the matched intent.setDisplayNameBytes(com.google.protobuf.ByteString value) The display name of the matched intent.setGenerativeFallback(com.google.protobuf.Struct value) The generative fallback response of the matched intent.setGenerativeFallback(com.google.protobuf.Struct.Builder builderForValue) The generative fallback response of the matched intent.setIntentId(String value) The ID of the matched intent.setIntentIdBytes(com.google.protobuf.ByteString value) The ID of the matched intent.setScore(float value) The score of the matched intent.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Action.IntentMatch.MatchedIntent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Action.IntentMatch.MatchedIntent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Action.IntentMatch.MatchedIntent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Action.IntentMatch.MatchedIntent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Action.IntentMatch.MatchedIntent.Builder>
-
mergeFrom
public Action.IntentMatch.MatchedIntent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Action.IntentMatch.MatchedIntent.Builder>- Throws:
IOException
-
getIntentId
The ID of the matched intent.
string intent_id = 1;- Specified by:
getIntentIdin interfaceAction.IntentMatch.MatchedIntentOrBuilder- Returns:
- The intentId.
-
getIntentIdBytes
public com.google.protobuf.ByteString getIntentIdBytes()The ID of the matched intent.
string intent_id = 1;- Specified by:
getIntentIdBytesin interfaceAction.IntentMatch.MatchedIntentOrBuilder- Returns:
- The bytes for intentId.
-
setIntentId
The ID of the matched intent.
string intent_id = 1;- Parameters:
value- The intentId to set.- Returns:
- This builder for chaining.
-
clearIntentId
The ID of the matched intent.
string intent_id = 1;- Returns:
- This builder for chaining.
-
setIntentIdBytes
public Action.IntentMatch.MatchedIntent.Builder setIntentIdBytes(com.google.protobuf.ByteString value) The ID of the matched intent.
string intent_id = 1;- Parameters:
value- The bytes for intentId to set.- Returns:
- This builder for chaining.
-
getDisplayName
The display name of the matched intent.
string display_name = 2;- Specified by:
getDisplayNamein interfaceAction.IntentMatch.MatchedIntentOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name of the matched intent.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceAction.IntentMatch.MatchedIntentOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
The display name of the matched intent.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
The display name of the matched intent.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Action.IntentMatch.MatchedIntent.Builder setDisplayNameBytes(com.google.protobuf.ByteString value) The display name of the matched intent.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getScore
public float getScore()The score of the matched intent.
float score = 3;- Specified by:
getScorein interfaceAction.IntentMatch.MatchedIntentOrBuilder- Returns:
- The score.
-
setScore
The score of the matched intent.
float score = 3;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
The score of the matched intent.
float score = 3;- Returns:
- This builder for chaining.
-
hasGenerativeFallback
public boolean hasGenerativeFallback()The generative fallback response of the matched intent.
.google.protobuf.Struct generative_fallback = 4;- Specified by:
hasGenerativeFallbackin interfaceAction.IntentMatch.MatchedIntentOrBuilder- Returns:
- Whether the generativeFallback field is set.
-
getGenerativeFallback
public com.google.protobuf.Struct getGenerativeFallback()The generative fallback response of the matched intent.
.google.protobuf.Struct generative_fallback = 4;- Specified by:
getGenerativeFallbackin interfaceAction.IntentMatch.MatchedIntentOrBuilder- Returns:
- The generativeFallback.
-
setGenerativeFallback
public Action.IntentMatch.MatchedIntent.Builder setGenerativeFallback(com.google.protobuf.Struct value) The generative fallback response of the matched intent.
.google.protobuf.Struct generative_fallback = 4; -
setGenerativeFallback
public Action.IntentMatch.MatchedIntent.Builder setGenerativeFallback(com.google.protobuf.Struct.Builder builderForValue) The generative fallback response of the matched intent.
.google.protobuf.Struct generative_fallback = 4; -
mergeGenerativeFallback
public Action.IntentMatch.MatchedIntent.Builder mergeGenerativeFallback(com.google.protobuf.Struct value) The generative fallback response of the matched intent.
.google.protobuf.Struct generative_fallback = 4; -
clearGenerativeFallback
The generative fallback response of the matched intent.
.google.protobuf.Struct generative_fallback = 4; -
getGenerativeFallbackBuilder
public com.google.protobuf.Struct.Builder getGenerativeFallbackBuilder()The generative fallback response of the matched intent.
.google.protobuf.Struct generative_fallback = 4; -
getGenerativeFallbackOrBuilder
public com.google.protobuf.StructOrBuilder getGenerativeFallbackOrBuilder()The generative fallback response of the matched intent.
.google.protobuf.Struct generative_fallback = 4;- Specified by:
getGenerativeFallbackOrBuilderin interfaceAction.IntentMatch.MatchedIntentOrBuilder
-