Class WebhookRequest.Builder (4.4.0)

public static final class WebhookRequest.Builder extends GeneratedMessageV3.Builder<WebhookRequest.Builder> implements WebhookRequestOrBuilder

The request message for a webhook call.

Protobuf type google.cloud.dialogflow.v2.WebhookRequest

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WebhookRequest build()
Returns
TypeDescription
WebhookRequest

buildPartial()

public WebhookRequest buildPartial()
Returns
TypeDescription
WebhookRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOriginalDetectIntentRequest()

public WebhookRequest.Builder clearOriginalDetectIntentRequest()

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Returns
TypeDescription
WebhookRequest.Builder

clearQueryResult()

public WebhookRequest.Builder clearQueryResult()

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

.google.cloud.dialogflow.v2.QueryResult query_result = 2;

Returns
TypeDescription
WebhookRequest.Builder

clearResponseId()

public WebhookRequest.Builder clearResponseId()

The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id.

string response_id = 1;

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

clearSession()

public WebhookRequest.Builder clearSession()

The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format: projects/<Project ID>/agent/sessions/<Session ID>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>.

string session = 4;

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WebhookRequest getDefaultInstanceForType()
Returns
TypeDescription
WebhookRequest

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOriginalDetectIntentRequest()

public OriginalDetectIntentRequest getOriginalDetectIntentRequest()

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Returns
TypeDescription
OriginalDetectIntentRequest

The originalDetectIntentRequest.

getOriginalDetectIntentRequestBuilder()

public OriginalDetectIntentRequest.Builder getOriginalDetectIntentRequestBuilder()

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Returns
TypeDescription
OriginalDetectIntentRequest.Builder

getOriginalDetectIntentRequestOrBuilder()

public OriginalDetectIntentRequestOrBuilder getOriginalDetectIntentRequestOrBuilder()

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Returns
TypeDescription
OriginalDetectIntentRequestOrBuilder

getQueryResult()

public QueryResult getQueryResult()

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

.google.cloud.dialogflow.v2.QueryResult query_result = 2;

Returns
TypeDescription
QueryResult

The queryResult.

getQueryResultBuilder()

public QueryResult.Builder getQueryResultBuilder()

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

.google.cloud.dialogflow.v2.QueryResult query_result = 2;

Returns
TypeDescription
QueryResult.Builder

getQueryResultOrBuilder()

public QueryResultOrBuilder getQueryResultOrBuilder()

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

.google.cloud.dialogflow.v2.QueryResult query_result = 2;

Returns
TypeDescription
QueryResultOrBuilder

getResponseId()

public String getResponseId()

The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id.

string response_id = 1;

Returns
TypeDescription
String

The responseId.

getResponseIdBytes()

public ByteString getResponseIdBytes()

The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id.

string response_id = 1;

Returns
TypeDescription
ByteString

The bytes for responseId.

getSession()

public String getSession()

The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format: projects/<Project ID>/agent/sessions/<Session ID>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>.

string session = 4;

Returns
TypeDescription
String

The session.

getSessionBytes()

public ByteString getSessionBytes()

The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format: projects/<Project ID>/agent/sessions/<Session ID>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>.

string session = 4;

Returns
TypeDescription
ByteString

The bytes for session.

hasOriginalDetectIntentRequest()

public boolean hasOriginalDetectIntentRequest()

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Returns
TypeDescription
boolean

Whether the originalDetectIntentRequest field is set.

hasQueryResult()

public boolean hasQueryResult()

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

.google.cloud.dialogflow.v2.QueryResult query_result = 2;

Returns
TypeDescription
boolean

Whether the queryResult field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WebhookRequest other)

public WebhookRequest.Builder mergeFrom(WebhookRequest other)
Parameter
NameDescription
otherWebhookRequest
Returns
TypeDescription
WebhookRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOriginalDetectIntentRequest(OriginalDetectIntentRequest value)

public WebhookRequest.Builder mergeOriginalDetectIntentRequest(OriginalDetectIntentRequest value)

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Parameter
NameDescription
valueOriginalDetectIntentRequest
Returns
TypeDescription
WebhookRequest.Builder

mergeQueryResult(QueryResult value)

public WebhookRequest.Builder mergeQueryResult(QueryResult value)

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

.google.cloud.dialogflow.v2.QueryResult query_result = 2;

Parameter
NameDescription
valueQueryResult
Returns
TypeDescription
WebhookRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOriginalDetectIntentRequest(OriginalDetectIntentRequest value)

public WebhookRequest.Builder setOriginalDetectIntentRequest(OriginalDetectIntentRequest value)

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Parameter
NameDescription
valueOriginalDetectIntentRequest
Returns
TypeDescription
WebhookRequest.Builder

setOriginalDetectIntentRequest(OriginalDetectIntentRequest.Builder builderForValue)

public WebhookRequest.Builder setOriginalDetectIntentRequest(OriginalDetectIntentRequest.Builder builderForValue)

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;

Parameter
NameDescription
builderForValueOriginalDetectIntentRequest.Builder
Returns
TypeDescription
WebhookRequest.Builder

setQueryResult(QueryResult value)

public WebhookRequest.Builder setQueryResult(QueryResult value)

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

.google.cloud.dialogflow.v2.QueryResult query_result = 2;

Parameter
NameDescription
valueQueryResult
Returns
TypeDescription
WebhookRequest.Builder

setQueryResult(QueryResult.Builder builderForValue)

public WebhookRequest.Builder setQueryResult(QueryResult.Builder builderForValue)

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

.google.cloud.dialogflow.v2.QueryResult query_result = 2;

Parameter
NameDescription
builderForValueQueryResult.Builder
Returns
TypeDescription
WebhookRequest.Builder

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

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

setResponseId(String value)

public WebhookRequest.Builder setResponseId(String value)

The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id.

string response_id = 1;

Parameter
NameDescription
valueString

The responseId to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setResponseIdBytes(ByteString value)

public WebhookRequest.Builder setResponseIdBytes(ByteString value)

The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id.

string response_id = 1;

Parameter
NameDescription
valueByteString

The bytes for responseId to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setSession(String value)

public WebhookRequest.Builder setSession(String value)

The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format: projects/<Project ID>/agent/sessions/<Session ID>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>.

string session = 4;

Parameter
NameDescription
valueString

The session to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setSessionBytes(ByteString value)

public WebhookRequest.Builder setSessionBytes(ByteString value)

The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format: projects/<Project ID>/agent/sessions/<Session ID>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>.

string session = 4;

Parameter
NameDescription
valueByteString

The bytes for session to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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