public final class WebhookResponse extends GeneratedMessageV3 implements WebhookResponseOrBuilder
The response message for a webhook call.
Protobuf type google.cloud.dialogflow.cx.v3beta1.WebhookResponse
Static Fields
FULFILLMENT_RESPONSE_FIELD_NUMBER
public static final int FULFILLMENT_RESPONSE_FIELD_NUMBER
Field Value
PAGE_INFO_FIELD_NUMBER
public static final int PAGE_INFO_FIELD_NUMBER
Field Value
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
Field Value
SESSION_INFO_FIELD_NUMBER
public static final int SESSION_INFO_FIELD_NUMBER
Field Value
TARGET_FLOW_FIELD_NUMBER
public static final int TARGET_FLOW_FIELD_NUMBER
Field Value
TARGET_PAGE_FIELD_NUMBER
public static final int TARGET_PAGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static WebhookResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static WebhookResponse.Builder newBuilder()
Returns
newBuilder(WebhookResponse prototype)
public static WebhookResponse.Builder newBuilder(WebhookResponse prototype)
Parameter
Returns
public static WebhookResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static WebhookResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static WebhookResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WebhookResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static WebhookResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WebhookResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WebhookResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static WebhookResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WebhookResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static WebhookResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static WebhookResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WebhookResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<WebhookResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public WebhookResponse getDefaultInstanceForType()
Returns
getFulfillmentResponse()
public WebhookResponse.FulfillmentResponse 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;
Returns
getFulfillmentResponseOrBuilder()
public WebhookResponse.FulfillmentResponseOrBuilder 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;
Returns
getPageInfo()
public PageInfo 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;
Returns
getPageInfoOrBuilder()
public PageInfoOrBuilder 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;
Returns
getParserForType()
public Parser<WebhookResponse> getParserForType()
Returns
Overrides
getPayload()
public Struct getPayload()
Value to append directly to QueryResult.webhook_payloads.
.google.protobuf.Struct payload = 4;
Returns
Type | Description |
Struct | The payload.
|
getPayloadOrBuilder()
public StructOrBuilder getPayloadOrBuilder()
Value to append directly to QueryResult.webhook_payloads.
.google.protobuf.Struct payload = 4;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSessionInfo()
public SessionInfo 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;
Returns
getSessionInfoOrBuilder()
public SessionInfoOrBuilder 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;
Returns
getTargetFlow()
public String getTargetFlow()
The target flow to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>
.
string target_flow = 6 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The targetFlow.
|
getTargetFlowBytes()
public ByteString getTargetFlowBytes()
The target flow to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>
.
string target_flow = 6 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for targetFlow.
|
getTargetPage()
public String getTargetPage()
The target page to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>
.
string target_page = 5 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The targetPage.
|
getTargetPageBytes()
public ByteString getTargetPageBytes()
The target page to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>
.
string target_page = 5 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for targetPage.
|
getTransitionCase()
public WebhookResponse.TransitionCase getTransitionCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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;
Returns
Type | Description |
boolean | Whether the fulfillmentResponse field is set.
|
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;
Returns
Type | Description |
boolean | Whether the pageInfo field is set.
|
hasPayload()
public boolean hasPayload()
Value to append directly to QueryResult.webhook_payloads.
.google.protobuf.Struct payload = 4;
Returns
Type | Description |
boolean | Whether the payload field is set.
|
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;
Returns
Type | Description |
boolean | Whether the sessionInfo field is set.
|
hasTargetFlow()
public boolean hasTargetFlow()
The target flow to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>
.
string target_flow = 6 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
boolean | Whether the targetFlow field is set.
|
hasTargetPage()
public boolean hasTargetPage()
The target page to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>
.
string target_page = 5 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
boolean | Whether the targetPage field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public WebhookResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WebhookResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public WebhookResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions