Class WebhookResponse (0.11.5)

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
Type Description
int

PAGE_INFO_FIELD_NUMBER

public static final int PAGE_INFO_FIELD_NUMBER
Field Value
Type Description
int

PAYLOAD_FIELD_NUMBER

public static final int PAYLOAD_FIELD_NUMBER
Field Value
Type Description
int

SESSION_INFO_FIELD_NUMBER

public static final int SESSION_INFO_FIELD_NUMBER
Field Value
Type Description
int

TARGET_FLOW_FIELD_NUMBER

public static final int TARGET_FLOW_FIELD_NUMBER
Field Value
Type Description
int

TARGET_PAGE_FIELD_NUMBER

public static final int TARGET_PAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WebhookResponse getDefaultInstance()
Returns
Type Description
WebhookResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static WebhookResponse.Builder newBuilder()
Returns
Type Description
WebhookResponse.Builder

newBuilder(WebhookResponse prototype)

public static WebhookResponse.Builder newBuilder(WebhookResponse prototype)
Parameter
Name Description
prototype WebhookResponse
Returns
Type Description
WebhookResponse.Builder

parseDelimitedFrom(InputStream input)

public static WebhookResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WebhookResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WebhookResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WebhookResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WebhookResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WebhookResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WebhookResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WebhookResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WebhookResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WebhookResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WebhookResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WebhookResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WebhookResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WebhookResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WebhookResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WebhookResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WebhookResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WebhookResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WebhookResponse> parser()
Returns
Type Description
Parser<WebhookResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public WebhookResponse getDefaultInstanceForType()
Returns
Type Description
WebhookResponse

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
Type Description
WebhookResponse.FulfillmentResponse

The fulfillmentResponse.

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
Type Description
WebhookResponse.FulfillmentResponseOrBuilder

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
Type Description
PageInfo

The pageInfo.

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
Type Description
PageInfoOrBuilder

getParserForType()

public Parser<WebhookResponse> getParserForType()
Returns
Type Description
Parser<WebhookResponse>
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
Type Description
StructOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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
Type Description
SessionInfo

The sessionInfo.

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
Type Description
SessionInfoOrBuilder

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
Type Description
WebhookResponse.TransitionCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WebhookResponse.Builder newBuilderForType()
Returns
Type Description
WebhookResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WebhookResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WebhookResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public WebhookResponse.Builder toBuilder()
Returns
Type Description
WebhookResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException