Class MatchIntentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MatchIntentRequest.Builder>
com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.Builder
- All Implemented Interfaces:
MatchIntentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MatchIntentRequest
public static final class MatchIntentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MatchIntentRequest.Builder>
implements MatchIntentRequestOrBuilder
Request of [MatchIntent][].Protobuf type
google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Persist session parameter changes from `query_params`.Required.The parameters of this query.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanPersist session parameter changes from `query_params`.Required.Required.Required.The parameters of this query.The parameters of this query.The parameters of this query.Required.com.google.protobuf.ByteStringRequired.booleanRequired.booleanThe parameters of this query.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MatchIntentRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeQueryInput(QueryInput value) Required.mergeQueryParams(QueryParameters value) The parameters of this query.setPersistParameterChanges(boolean value) Persist session parameter changes from `query_params`.setQueryInput(QueryInput value) Required.setQueryInput(QueryInput.Builder builderForValue) Required.setQueryParams(QueryParameters value) The parameters of this query.setQueryParams(QueryParameters.Builder builderForValue) The parameters of this query.setSession(String value) Required.setSessionBytes(com.google.protobuf.ByteString value) Required.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<MatchIntentRequest.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<MatchIntentRequest.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<MatchIntentRequest.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<MatchIntentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MatchIntentRequest.Builder>
-
mergeFrom
public MatchIntentRequest.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<MatchIntentRequest.Builder>- Throws:
IOException
-
getSession
Required. The name of the session this query is sent to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session).
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getSessionin interfaceMatchIntentRequestOrBuilder- Returns:
- The session.
-
getSessionBytes
public com.google.protobuf.ByteString getSessionBytes()Required. The name of the session this query is sent to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session).
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getSessionBytesin interfaceMatchIntentRequestOrBuilder- Returns:
- The bytes for session.
-
setSession
Required. The name of the session this query is sent to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session).
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The session to set.- Returns:
- This builder for chaining.
-
clearSession
Required. The name of the session this query is sent to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session).
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setSessionBytes
Required. The name of the session this query is sent to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session).
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for session to set.- Returns:
- This builder for chaining.
-
hasQueryParams
public boolean hasQueryParams()The parameters of this query.
.google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2;- Specified by:
hasQueryParamsin interfaceMatchIntentRequestOrBuilder- Returns:
- Whether the queryParams field is set.
-
getQueryParams
The parameters of this query.
.google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2;- Specified by:
getQueryParamsin interfaceMatchIntentRequestOrBuilder- Returns:
- The queryParams.
-
setQueryParams
The parameters of this query.
.google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; -
setQueryParams
The parameters of this query.
.google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; -
mergeQueryParams
The parameters of this query.
.google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; -
clearQueryParams
The parameters of this query.
.google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; -
getQueryParamsBuilder
The parameters of this query.
.google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; -
getQueryParamsOrBuilder
The parameters of this query.
.google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2;- Specified by:
getQueryParamsOrBuilderin interfaceMatchIntentRequestOrBuilder
-
hasQueryInput
public boolean hasQueryInput()Required. The input specification.
.google.cloud.dialogflow.cx.v3beta1.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasQueryInputin interfaceMatchIntentRequestOrBuilder- Returns:
- Whether the queryInput field is set.
-
getQueryInput
Required. The input specification.
.google.cloud.dialogflow.cx.v3beta1.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryInputin interfaceMatchIntentRequestOrBuilder- Returns:
- The queryInput.
-
setQueryInput
Required. The input specification.
.google.cloud.dialogflow.cx.v3beta1.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; -
setQueryInput
Required. The input specification.
.google.cloud.dialogflow.cx.v3beta1.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeQueryInput
Required. The input specification.
.google.cloud.dialogflow.cx.v3beta1.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearQueryInput
Required. The input specification.
.google.cloud.dialogflow.cx.v3beta1.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; -
getQueryInputBuilder
Required. The input specification.
.google.cloud.dialogflow.cx.v3beta1.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; -
getQueryInputOrBuilder
Required. The input specification.
.google.cloud.dialogflow.cx.v3beta1.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryInputOrBuilderin interfaceMatchIntentRequestOrBuilder
-
getPersistParameterChanges
public boolean getPersistParameterChanges()Persist session parameter changes from `query_params`.
bool persist_parameter_changes = 5;- Specified by:
getPersistParameterChangesin interfaceMatchIntentRequestOrBuilder- Returns:
- The persistParameterChanges.
-
setPersistParameterChanges
Persist session parameter changes from `query_params`.
bool persist_parameter_changes = 5;- Parameters:
value- The persistParameterChanges to set.- Returns:
- This builder for chaining.
-
clearPersistParameterChanges
Persist session parameter changes from `query_params`.
bool persist_parameter_changes = 5;- Returns:
- This builder for chaining.
-