Class WebhookResponse.Builder (0.13.0)

public static final class WebhookResponse.Builder extends GeneratedMessageV3.Builder<WebhookResponse.Builder> implements WebhookResponseOrBuilder

The response message for a webhook call.

Protobuf type google.cloud.dialogflow.cx.v3.WebhookResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WebhookResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WebhookResponse.Builder
Overrides

build()

public WebhookResponse build()
Returns
TypeDescription
WebhookResponse

buildPartial()

public WebhookResponse buildPartial()
Returns
TypeDescription
WebhookResponse

clear()

public WebhookResponse.Builder clear()
Returns
TypeDescription
WebhookResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WebhookResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WebhookResponse.Builder
Overrides

clearFulfillmentResponse()

public WebhookResponse.Builder 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.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;

Returns
TypeDescription
WebhookResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WebhookResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WebhookResponse.Builder
Overrides

clearPageInfo()

public WebhookResponse.Builder 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.v3.PageInfo page_info = 2;

Returns
TypeDescription
WebhookResponse.Builder

clearPayload()

public WebhookResponse.Builder clearPayload()

Value to append directly to QueryResult.webhook_payloads.

.google.protobuf.Struct payload = 4;

Returns
TypeDescription
WebhookResponse.Builder

clearSessionInfo()

public WebhookResponse.Builder 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.v3.SessionInfo session_info = 3;

Returns
TypeDescription
WebhookResponse.Builder

clearTargetFlow()

public WebhookResponse.Builder clearTargetFlow()

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
TypeDescription
WebhookResponse.Builder

This builder for chaining.

clearTargetPage()

public WebhookResponse.Builder clearTargetPage()

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
TypeDescription
WebhookResponse.Builder

This builder for chaining.

clearTransition()

public WebhookResponse.Builder clearTransition()
Returns
TypeDescription
WebhookResponse.Builder

clone()

public WebhookResponse.Builder clone()
Returns
TypeDescription
WebhookResponse.Builder
Overrides

getDefaultInstanceForType()

public WebhookResponse getDefaultInstanceForType()
Returns
TypeDescription
WebhookResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;

Returns
TypeDescription
WebhookResponse.FulfillmentResponse

The fulfillmentResponse.

getFulfillmentResponseBuilder()

public WebhookResponse.FulfillmentResponse.Builder 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.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;

Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder

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.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;

Returns
TypeDescription
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.v3.PageInfo page_info = 2;

Returns
TypeDescription
PageInfo

The pageInfo.

getPageInfoBuilder()

public PageInfo.Builder 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.v3.PageInfo page_info = 2;

Returns
TypeDescription
PageInfo.Builder

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.v3.PageInfo page_info = 2;

Returns
TypeDescription
PageInfoOrBuilder

getPayload()

public Struct getPayload()

Value to append directly to QueryResult.webhook_payloads.

.google.protobuf.Struct payload = 4;

Returns
TypeDescription
Struct

The payload.

getPayloadBuilder()

public Struct.Builder getPayloadBuilder()

Value to append directly to QueryResult.webhook_payloads.

.google.protobuf.Struct payload = 4;

Returns
TypeDescription
Builder

getPayloadOrBuilder()

public StructOrBuilder getPayloadOrBuilder()

Value to append directly to QueryResult.webhook_payloads.

.google.protobuf.Struct payload = 4;

Returns
TypeDescription
StructOrBuilder

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.v3.SessionInfo session_info = 3;

Returns
TypeDescription
SessionInfo

The sessionInfo.

getSessionInfoBuilder()

public SessionInfo.Builder 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.v3.SessionInfo session_info = 3;

Returns
TypeDescription
SessionInfo.Builder

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.v3.SessionInfo session_info = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for targetPage.

getTransitionCase()

public WebhookResponse.TransitionCase getTransitionCase()
Returns
TypeDescription
WebhookResponse.TransitionCase

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.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;

Returns
TypeDescription
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.v3.PageInfo page_info = 2;

Returns
TypeDescription
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
TypeDescription
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.v3.SessionInfo session_info = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the targetPage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WebhookResponse other)

public WebhookResponse.Builder mergeFrom(WebhookResponse other)
Parameter
NameDescription
otherWebhookResponse
Returns
TypeDescription
WebhookResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WebhookResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WebhookResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public WebhookResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WebhookResponse.Builder
Overrides

mergeFulfillmentResponse(WebhookResponse.FulfillmentResponse value)

public WebhookResponse.Builder mergeFulfillmentResponse(WebhookResponse.FulfillmentResponse value)

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.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;

Parameter
NameDescription
valueWebhookResponse.FulfillmentResponse
Returns
TypeDescription
WebhookResponse.Builder

mergePageInfo(PageInfo value)

public WebhookResponse.Builder mergePageInfo(PageInfo value)

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.v3.PageInfo page_info = 2;

Parameter
NameDescription
valuePageInfo
Returns
TypeDescription
WebhookResponse.Builder

mergePayload(Struct value)

public WebhookResponse.Builder mergePayload(Struct value)

Value to append directly to QueryResult.webhook_payloads.

.google.protobuf.Struct payload = 4;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
WebhookResponse.Builder

mergeSessionInfo(SessionInfo value)

public WebhookResponse.Builder mergeSessionInfo(SessionInfo value)

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.v3.SessionInfo session_info = 3;

Parameter
NameDescription
valueSessionInfo
Returns
TypeDescription
WebhookResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WebhookResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WebhookResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WebhookResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WebhookResponse.Builder
Overrides

setFulfillmentResponse(WebhookResponse.FulfillmentResponse value)

public WebhookResponse.Builder setFulfillmentResponse(WebhookResponse.FulfillmentResponse value)

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.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;

Parameter
NameDescription
valueWebhookResponse.FulfillmentResponse
Returns
TypeDescription
WebhookResponse.Builder

setFulfillmentResponse(WebhookResponse.FulfillmentResponse.Builder builderForValue)

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.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;

Parameter
NameDescription
builderForValueWebhookResponse.FulfillmentResponse.Builder
Returns
TypeDescription
WebhookResponse.Builder

setPageInfo(PageInfo value)

public WebhookResponse.Builder setPageInfo(PageInfo value)

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.v3.PageInfo page_info = 2;

Parameter
NameDescription
valuePageInfo
Returns
TypeDescription
WebhookResponse.Builder

setPageInfo(PageInfo.Builder builderForValue)

public WebhookResponse.Builder setPageInfo(PageInfo.Builder builderForValue)

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.v3.PageInfo page_info = 2;

Parameter
NameDescription
builderForValuePageInfo.Builder
Returns
TypeDescription
WebhookResponse.Builder

setPayload(Struct value)

public WebhookResponse.Builder setPayload(Struct value)

Value to append directly to QueryResult.webhook_payloads.

.google.protobuf.Struct payload = 4;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
WebhookResponse.Builder

setPayload(Struct.Builder builderForValue)

public WebhookResponse.Builder setPayload(Struct.Builder builderForValue)

Value to append directly to QueryResult.webhook_payloads.

.google.protobuf.Struct payload = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WebhookResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WebhookResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WebhookResponse.Builder
Overrides

setSessionInfo(SessionInfo value)

public WebhookResponse.Builder setSessionInfo(SessionInfo value)

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.v3.SessionInfo session_info = 3;

Parameter
NameDescription
valueSessionInfo
Returns
TypeDescription
WebhookResponse.Builder

setSessionInfo(SessionInfo.Builder builderForValue)

public WebhookResponse.Builder setSessionInfo(SessionInfo.Builder builderForValue)

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.v3.SessionInfo session_info = 3;

Parameter
NameDescription
builderForValueSessionInfo.Builder
Returns
TypeDescription
WebhookResponse.Builder

setTargetFlow(String value)

public WebhookResponse.Builder setTargetFlow(String value)

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) = { ... }

Parameter
NameDescription
valueString

The targetFlow to set.

Returns
TypeDescription
WebhookResponse.Builder

This builder for chaining.

setTargetFlowBytes(ByteString value)

public WebhookResponse.Builder setTargetFlowBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for targetFlow to set.

Returns
TypeDescription
WebhookResponse.Builder

This builder for chaining.

setTargetPage(String value)

public WebhookResponse.Builder setTargetPage(String value)

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) = { ... }

Parameter
NameDescription
valueString

The targetPage to set.

Returns
TypeDescription
WebhookResponse.Builder

This builder for chaining.

setTargetPageBytes(ByteString value)

public WebhookResponse.Builder setTargetPageBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for targetPage to set.

Returns
TypeDescription
WebhookResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WebhookResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WebhookResponse.Builder
Overrides