Class WebhookResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WebhookResponse.Builder>
com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.Builder
- All Implemented Interfaces:
WebhookResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WebhookResponse
public static final class WebhookResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WebhookResponse.Builder>
implements WebhookResponseOrBuilder
The response message for a webhook call.Protobuf type
google.cloud.dialogflow.cx.v3beta1.WebhookResponse-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The fulfillment response to send to the user.Information about page status.Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].Information about session status.The target flow to transition to.The target page to transition to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe fulfillment response to send to the user.The fulfillment response to send to the user.The fulfillment response to send to the user.Information about page status.Information about page status.Information about page status.com.google.protobuf.StructValue to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].com.google.protobuf.Struct.BuilderValue to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].com.google.protobuf.StructOrBuilderValue to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].Information about session status.Information about session status.Information about session status.The target flow to transition to.com.google.protobuf.ByteStringThe target flow to transition to.The target page to transition to.com.google.protobuf.ByteStringThe target page to transition to.booleanThe fulfillment response to send to the user.booleanInformation about page status.booleanValue to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].booleanInformation about session status.booleanThe target flow to transition to.booleanThe target page to transition to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(WebhookResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The fulfillment response to send to the user.mergePageInfo(PageInfo value) Information about page status.mergePayload(com.google.protobuf.Struct value) Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].mergeSessionInfo(SessionInfo value) Information about session status.The fulfillment response to send to the user.setFulfillmentResponse(WebhookResponse.FulfillmentResponse.Builder builderForValue) The fulfillment response to send to the user.setPageInfo(PageInfo value) Information about page status.setPageInfo(PageInfo.Builder builderForValue) Information about page status.setPayload(com.google.protobuf.Struct value) Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].setPayload(com.google.protobuf.Struct.Builder builderForValue) Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].setSessionInfo(SessionInfo value) Information about session status.setSessionInfo(SessionInfo.Builder builderForValue) Information about session status.setTargetFlow(String value) The target flow to transition to.setTargetFlowBytes(com.google.protobuf.ByteString value) The target flow to transition to.setTargetPage(String value) The target page to transition to.setTargetPageBytes(com.google.protobuf.ByteString value) The target page to transition to.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<WebhookResponse.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<WebhookResponse.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<WebhookResponse.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<WebhookResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WebhookResponse.Builder>
-
mergeFrom
public WebhookResponse.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<WebhookResponse.Builder>- Throws:
IOException
-
getTransitionCase
- Specified by:
getTransitionCasein interfaceWebhookResponseOrBuilder
-
clearTransition
-
hasFulfillmentResponse
public boolean hasFulfillmentResponse()The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1;- Specified by:
hasFulfillmentResponsein interfaceWebhookResponseOrBuilder- Returns:
- Whether the fulfillmentResponse field is set.
-
getFulfillmentResponse
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1;- Specified by:
getFulfillmentResponsein interfaceWebhookResponseOrBuilder- Returns:
- The fulfillmentResponse.
-
setFulfillmentResponse
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1; -
setFulfillmentResponse
public WebhookResponse.Builder setFulfillmentResponse(WebhookResponse.FulfillmentResponse.Builder builderForValue) The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1; -
mergeFulfillmentResponse
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1; -
clearFulfillmentResponse
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1; -
getFulfillmentResponseBuilder
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1; -
getFulfillmentResponseOrBuilder
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1;- Specified by:
getFulfillmentResponseOrBuilderin interfaceWebhookResponseOrBuilder
-
hasPageInfo
public boolean hasPageInfo()Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2;- Specified by:
hasPageInfoin interfaceWebhookResponseOrBuilder- Returns:
- Whether the pageInfo field is set.
-
getPageInfo
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2;- Specified by:
getPageInfoin interfaceWebhookResponseOrBuilder- Returns:
- The pageInfo.
-
setPageInfo
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2; -
setPageInfo
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2; -
mergePageInfo
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2; -
clearPageInfo
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2; -
getPageInfoBuilder
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2; -
getPageInfoOrBuilder
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2;- Specified by:
getPageInfoOrBuilderin interfaceWebhookResponseOrBuilder
-
hasSessionInfo
public boolean hasSessionInfo()Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3;- Specified by:
hasSessionInfoin interfaceWebhookResponseOrBuilder- Returns:
- Whether the sessionInfo field is set.
-
getSessionInfo
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3;- Specified by:
getSessionInfoin interfaceWebhookResponseOrBuilder- Returns:
- The sessionInfo.
-
setSessionInfo
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3; -
setSessionInfo
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3; -
mergeSessionInfo
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3; -
clearSessionInfo
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3; -
getSessionInfoBuilder
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3; -
getSessionInfoOrBuilder
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3;- Specified by:
getSessionInfoOrBuilderin interfaceWebhookResponseOrBuilder
-
hasPayload
public boolean hasPayload()Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;- Specified by:
hasPayloadin interfaceWebhookResponseOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public com.google.protobuf.Struct getPayload()Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;- Specified by:
getPayloadin interfaceWebhookResponseOrBuilder- Returns:
- The payload.
-
setPayload
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4; -
setPayload
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4; -
mergePayload
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4; -
clearPayload
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4; -
getPayloadBuilder
public com.google.protobuf.Struct.Builder getPayloadBuilder()Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4; -
getPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;- Specified by:
getPayloadOrBuilderin interfaceWebhookResponseOrBuilder
-
hasTargetPage
public boolean hasTargetPage()The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetPagein interfaceWebhookResponseOrBuilder- Returns:
- Whether the targetPage field is set.
-
getTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetPagein interfaceWebhookResponseOrBuilder- Returns:
- The targetPage.
-
getTargetPageBytes
public com.google.protobuf.ByteString getTargetPageBytes()The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetPageBytesin interfaceWebhookResponseOrBuilder- Returns:
- The bytes for targetPage.
-
setTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The targetPage to set.- Returns:
- This builder for chaining.
-
clearTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTargetPageBytes
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for targetPage to set.- Returns:
- This builder for chaining.
-
hasTargetFlow
public boolean hasTargetFlow()The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetFlowin interfaceWebhookResponseOrBuilder- Returns:
- Whether the targetFlow field is set.
-
getTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetFlowin interfaceWebhookResponseOrBuilder- Returns:
- The targetFlow.
-
getTargetFlowBytes
public com.google.protobuf.ByteString getTargetFlowBytes()The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetFlowBytesin interfaceWebhookResponseOrBuilder- Returns:
- The bytes for targetFlow.
-
setTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Parameters:
value- The targetFlow to set.- Returns:
- This builder for chaining.
-
clearTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTargetFlowBytes
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for targetFlow to set.- Returns:
- This builder for chaining.
-